Fix some old syntax

This commit is contained in:
Brian Anderson 2012-09-08 19:58:11 -07:00
parent 25dc59dc59
commit 9c98d0f99b

View File

@ -984,14 +984,14 @@ fn test_more() {
fn test_simplification() { fn test_simplification() {
let ext_cx = mk_ctxt(); let ext_cx = mk_ctxt();
let item_in = ast::ii_item(#ast[item] { let item_in = ast::ii_item(#ast[item] {
fn new_int_alist<B: copy>() -> alist<int, B> { fn new_int_alist<B: Copy>() -> alist<int, B> {
fn eq_int(&&a: int, &&b: int) -> bool { a == b } fn eq_int(&&a: int, &&b: int) -> bool { a == b }
return {eq_fn: eq_int, mut data: ~[]}; return {eq_fn: eq_int, mut data: ~[]};
} }
}); });
let item_out = simplify_ast(item_in); let item_out = simplify_ast(item_in);
let item_exp = ast::ii_item(#ast[item] { let item_exp = ast::ii_item(#ast[item] {
fn new_int_alist<B: copy>() -> alist<int, B> { fn new_int_alist<B: Copy>() -> alist<int, B> {
return {eq_fn: eq_int, mut data: ~[]}; return {eq_fn: eq_int, mut data: ~[]};
} }
}); });