From e9c12ab1d019b42e5427e31bfa49f1f799e84165 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Mon, 9 May 2011 12:40:09 +0200 Subject: Rewrite comp/middle/resolve.rs * Cleans up the algorithm * Move first pass to walk (second still folds) * Support part of a type/value namespace split (crate metadata and module indices still need to be taught about this) * Remove a few blatant inefficiencies (import tables being recreated for every lookup, most importantly) --- src/comp/front/parser.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/comp/front/parser.rs') diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 733d5050..46cad2fd 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -2309,8 +2309,7 @@ fn parse_rest_import_name(parser p, ast.ident first, } } auto import_decl = ast.view_item_import(defined_id, identifiers, - p.next_def_id(), - none[ast.def]); + p.next_def_id()); ret @spanned(lo, hi, import_decl); } -- cgit v1.2.3