From 9c98d0f99b44e1c57bdd60881518140e2593a5a4 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 8 Sep 2012 19:58:11 -0700 Subject: [PATCH] Fix some old syntax --- src/rustc/middle/astencode.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rustc/middle/astencode.rs b/src/rustc/middle/astencode.rs index 8cfcaddaa7b..bf29efaaa64 100644 --- a/src/rustc/middle/astencode.rs +++ b/src/rustc/middle/astencode.rs @@ -984,14 +984,14 @@ fn test_more() { fn test_simplification() { let ext_cx = mk_ctxt(); let item_in = ast::ii_item(#ast[item] { - fn new_int_alist() -> alist { + fn new_int_alist() -> alist { fn eq_int(&&a: int, &&b: int) -> bool { a == b } return {eq_fn: eq_int, mut data: ~[]}; } }); let item_out = simplify_ast(item_in); let item_exp = ast::ii_item(#ast[item] { - fn new_int_alist() -> alist { + fn new_int_alist() -> alist { return {eq_fn: eq_int, mut data: ~[]}; } });