summaryrefslogtreecommitdiff
path: root/src/ast/ast.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-11-03 12:01:01 +1100
committerJohn Hodge <tpg@mutabah.net>2015-11-03 12:01:01 +1100
commit01ec57f596f89d4b52b378975f941e2ed8d2e563 (patch)
tree58e17f12b09b1be1dc37d0143ea2e4cf0dcaa9c2 /src/ast/ast.cpp
parentf56b813d42ebb4629345f63e6ea2c4704bb28e0a (diff)
downloadmrust-01ec57f596f89d4b52b378975f941e2ed8d2e563.tar.gz
Move path binding logic into Resolve path to simplify
Diffstat (limited to 'src/ast/ast.cpp')
-rw-r--r--src/ast/ast.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp
index aa8a17e0..10a7d68a 100644
--- a/src/ast/ast.cpp
+++ b/src/ast/ast.cpp
@@ -715,7 +715,7 @@ Module::ItemRef Module::find_item(const ::std::string& needle, bool allow_leaves
// not yet bound, so run resolution (recursion)
DEBUG("Recursively resolving pub wildcard use " << imp.data);
//imp.data.resolve(root_crate);
- throw ParseError::Todo("Path::resolve() wildcard re-export call resolve");
+ throw ParseError::Todo("AST::Module::find_item() - Wildcard `use` not bound, call resolve here?");
}
TU_MATCH_DEF(AST::PathBinding, (binding), (info),
@@ -730,7 +730,7 @@ Module::ItemRef Module::find_item(const ::std::string& needle, bool allow_leaves
// - If it's a module, recurse
(Module,
auto rv = info.module_->find_item(needle);
- if( rv.type() != Module::ItemRef::ITEM_none ) {
+ if( rv.tag() != Module::ItemRef::None ) {
// Don't return RV, return the import (so caller can rewrite path if need be)
return ItemRef(imp);
//return rv;