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/pretty/pprust.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/comp/pretty') diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs index d767672f..ceef6256 100644 --- a/src/comp/pretty/pprust.rs +++ b/src/comp/pretty/pprust.rs @@ -846,7 +846,7 @@ fn print_view_item(ps s, @ast.view_item item) { pclose(s); } } - case (ast.view_item_import(?id,?ids,_,_)) { + case (ast.view_item_import(?id,?ids,_)) { wrd1(s, "import"); if (!Str.eq(id, ids.(Vec.len[str](ids)-1u))) { wrd1(s, id); -- cgit v1.2.3