diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-06-26 13:55:56 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-06-30 16:01:49 -0700 |
| commit | a3382b6f26e582210a3b649c9a71badaef0530bf (patch) | |
| tree | bd30506542a14a132b09aae154417c7cc9312498 /src/libsyntax/ast_map.rs | |
| parent | 8b2491160d71aa7a84ed822b85e9b3eff6097225 (diff) | |
Eliminate usages of old sugared call syntax
Diffstat (limited to 'src/libsyntax/ast_map.rs')
| -rw-r--r-- | src/libsyntax/ast_map.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ast_map.rs b/src/libsyntax/ast_map.rs index 0733dc903ba..f393f37dfb9 100644 --- a/src/libsyntax/ast_map.rs +++ b/src/libsyntax/ast_map.rs @@ -11,7 +11,7 @@ type path = ~[path_elt]; /* FIXMEs that say "bad" are as per #2543 */ fn path_to_str_with_sep(p: path, sep: str) -> str { - let strs = vec::map(p) {|e| + let strs = do vec::map(p) {|e| alt e { path_mod(s) { /* FIXME (#2543) */ copy *s } path_name(s) { /* FIXME (#2543) */ copy *s } @@ -156,7 +156,7 @@ fn map_block(b: blk, cx: ctx, v: vt) { } fn number_pat(cx: ctx, pat: @pat) { - ast_util::walk_pat(pat) {|p| + do ast_util::walk_pat(pat) {|p| alt p.node { pat_ident(_, _) { cx.map.insert(p.id, node_local(cx.local_id)); @@ -218,12 +218,12 @@ fn map_item(i: @item, cx: ctx, v: vt) { let (_, ms) = ast_util::split_class_items(items); // Map iface refs to their parent classes. This is // so we can find the self_ty - vec::iter(ifces) {|p| cx.map.insert(p.id, + do vec::iter(ifces) {|p| cx.map.insert(p.id, node_item(i, item_path)); }; let d_id = ast_util::local_def(i.id); let p = extend(cx, i.ident); // only need to handle methods - vec::iter(ms) {|m| map_method(d_id, p, m, cx); } + do vec::iter(ms) {|m| map_method(d_id, p, m, cx); } } _ { } } |
