summaryrefslogtreecommitdiff
path: root/src/ast/path.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-03-25 11:33:14 +0800
committerJohn Hodge <tpg@mutabah.net>2015-03-25 11:33:14 +0800
commitb698207664e45b9b0bb9944b5c97084dfc593ed6 (patch)
tree6408e43a422aafcb65bbd9ca83555e32df18c3ff /src/ast/path.cpp
parent303d0a93372281c471e450a7c6938ab2600d5e14 (diff)
downloadmrust-b698207664e45b9b0bb9944b5c97084dfc593ed6.tar.gz
HACK - Handle the case of core::iter::order importing core::ord, but also defining an 'ord' function
Diffstat (limited to 'src/ast/path.cpp')
-rw-r--r--src/ast/path.cpp2
1 files changed, 1 insertions, 1 deletions
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