diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-29 16:30:52 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-29 16:30:52 +0800 |
commit | bcbabdf4ef468bc7a45732354e32b1baf5d95eee (patch) | |
tree | a287d24c57da8bc74a203da9eb6ed656a11d5a90 /src | |
parent | 3a15a02099f8d1e8442d68072fc1ee7a14ae5b92 (diff) | |
download | mrust-bcbabdf4ef468bc7a45732354e32b1baf5d95eee.tar.gz |
Resolve Index - Add an assertion that currently fires
Diffstat (limited to 'src')
-rw-r--r-- | src/resolve/index.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resolve/index.cpp b/src/resolve/index.cpp index aa4fa750..252923b4 100644 --- a/src/resolve/index.cpp +++ b/src/resolve/index.cpp @@ -233,11 +233,12 @@ void Resolve_Index_Module_Wildcard(AST::Module& mod, bool handle_pub) DEBUG("Glob mod " << i.data.path); if( !e.module_ ) { - ASSERT_BUG(sp, e.hir, "Glob import but module pointer not set - " << i.data.path); + ASSERT_BUG(sp, e.hir, "Glob import where HIR module pointer not set - " << i.data.path); const auto& hmod = *e.hir; struct H { static AST::Path hir_to_ast(const HIR::SimplePath& p) { - //assert( p.m_crate_name != "" ); + // The crate name here has to be non-empty, because it's external. + assert( p.m_crate_name != "" ); AST::Path rv( p.m_crate_name, {} ); rv.nodes().reserve( p.m_components.size() ); for(const auto& n : p.m_components) |