diff options
| author | Rafael Ávila de Espíndola <[email protected]> | 2011-01-04 18:19:36 -0500 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-01-12 12:26:23 -0800 |
| commit | 359d72b4d047c3eb6fa13b0ae7b4a7432c0af785 (patch) | |
| tree | fc28d1b9d339e8433f81334609de9dca77ddfb5e /src/comp/middle/resolve.rs | |
| parent | Figure out what tydescs we need to pass when translating parametric function ... (diff) | |
| download | rust-359d72b4d047c3eb6fa13b0ae7b4a7432c0af785.tar.xz rust-359d72b4d047c3eb6fa13b0ae7b4a7432c0af785.zip | |
Change mod_index_entry to point directly to items and view_items.
Diffstat (limited to 'src/comp/middle/resolve.rs')
| -rw-r--r-- | src/comp/middle/resolve.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/comp/middle/resolve.rs b/src/comp/middle/resolve.rs index 95f84f46..e3b3c5a7 100644 --- a/src/comp/middle/resolve.rs +++ b/src/comp/middle/resolve.rs @@ -166,14 +166,14 @@ fn lookup_name(&env e, option.t[import_map] index, alt (m.index.find(i)) { case (some[ast.mod_index_entry](?ent)) { alt (ent) { - case (ast.mie_view_item(?ix)) { - ret found_def_view(e, index, m.view_items.(ix)); + case (ast.mie_view_item(?view_item)) { + ret found_def_view(e, index, view_item); } - case (ast.mie_item(?ix)) { - ret found_def_item(m.items.(ix)); + case (ast.mie_item(?item)) { + ret found_def_item(item); } - case (ast.mie_tag_variant(?item_idx, ?variant_idx)) { - alt (m.items.(item_idx).node) { + case (ast.mie_tag_variant(?item, ?variant_idx)) { + alt (item.node) { case (ast.item_tag(_, ?variants, _, ?tid)) { auto vid = variants.(variant_idx).id; auto t = ast.def_variant(tid, vid); |