diff options
| author | Lindsey Kuper <lindsey@rockstargirl.org> | 2012-07-03 16:30:42 -0700 |
|---|---|---|
| committer | Lindsey Kuper <lindsey@rockstargirl.org> | 2012-07-05 11:01:43 -0700 |
| commit | 33334f3c435926422d88dcd5bfafd5e32b141111 (patch) | |
| tree | 7ab702e7bd5565be7419e853e312c8a277b69528 /src/libsyntax/ast_map.rs | |
| parent | d93f3c5d835f12614f07c2d840799dd02f4780bc (diff) | |
Change 'iface' to 'trait' internally; parse `trait` as `iface` synonym
Diffstat (limited to 'src/libsyntax/ast_map.rs')
| -rw-r--r-- | src/libsyntax/ast_map.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ast_map.rs b/src/libsyntax/ast_map.rs index 4974b07503e..79d6691caf1 100644 --- a/src/libsyntax/ast_map.rs +++ b/src/libsyntax/ast_map.rs @@ -214,11 +214,11 @@ fn map_item(i: @item, cx: ctx, v: vt) { extend(cx, i.ident))); } } - item_class(tps, ifces, items, ctor, dtor, _) { + item_class(tps, traits, items, ctor, dtor, _) { let (_, ms) = ast_util::split_class_items(items); - // Map iface refs to their parent classes. This is + // Map trait refs to their parent classes. This is // so we can find the self_ty - do vec::iter(ifces) |p| { cx.map.insert(p.id, + do vec::iter(traits) |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); |
