From b698207664e45b9b0bb9944b5c97084dfc593ed6 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 25 Mar 2015 11:33:14 +0800 Subject: HACK - Handle the case of core::iter::order importing core::ord, but also defining an 'ord' function --- src/ast/path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ast/path.cpp') diff --git a/src/ast/path.cpp b/src/ast/path.cpp index 83cc98dc..4cf74368 100644 --- a/src/ast/path.cpp +++ b/src/ast/path.cpp @@ -102,7 +102,7 @@ void Path::resolve(const Crate& root_crate) continue ; } - auto item = mod->find_item(node.name()); + auto item = mod->find_item(node.name(), is_last); // Only allow leaf nodes (functions and statics) if this is the last node switch( item.type() ) { // Not found -- cgit v1.2.3