diff options
author | John Hodge <tpg@mutabah.net> | 2016-03-06 18:05:35 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-03-06 18:05:35 +0800 |
commit | 1573cf55ff6f38f51716bfe92b70341fa5489c74 (patch) | |
tree | a31226b085674e37545f161c75df94f8975e7a99 /src/convert/resolve.cpp | |
parent | 21a5e38857a90780654358a4b47abb0b04a3fc60 (diff) | |
download | mrust-1573cf55ff6f38f51716bfe92b70341fa5489c74.tar.gz |
Debug and fix `use` resolution
Diffstat (limited to 'src/convert/resolve.cpp')
-rw-r--r-- | src/convert/resolve.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/convert/resolve.cpp b/src/convert/resolve.cpp index cd72d27b..6640193a 100644 --- a/src/convert/resolve.cpp +++ b/src/convert/resolve.cpp @@ -403,7 +403,7 @@ void resolve_path(const Span& span, const AST::Crate& root_crate, AST::Path& pat // HACK: Not actually a normal TU, but it fits the same pattern
TU_MATCH(AST::Module::ItemRef, (item), (i),
(None,
- throw ParseError::Generic( FMT("Unable to find component '" << node.name() << "' of import " << path) );
+ ERROR(span, E0000, "Unable to find component '" << node.name() << "' of import " << path);
),
(Module,
mod = &i;
@@ -1727,7 +1727,7 @@ void absolutise_path(const Span& span, const AST::Crate& crate, const AST::Modul void ResolvePaths_HandleModule_Use(const AST::Crate& crate, const AST::Path& modpath, AST::Module& mod)
{
- TRACE_FUNCTION_F("modpath = " << modpath);
+ TRACE_FUNCTION_F("modpath = " << modpath << ", mod = {name:" << mod.name() << "}");
::std::vector<AST::Path> new_imports;
for( auto& imp : mod.imports() )
{
|