diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-09-29 08:26:36 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-09-29 08:26:36 +0800 |
commit | 92c1dde06ce062af953a522200d6385d63712d28 (patch) | |
tree | e0d2e08ff0d83b1a7634ed38ec97a191f4855bad /src/resolve/index.cpp | |
parent | cd1ff0bc296f9192c33b494421e4a86d532ceb70 (diff) | |
download | mrust-92c1dde06ce062af953a522200d6385d63712d28.tar.gz |
Expand - Load crates that were conditionally included
Diffstat (limited to 'src/resolve/index.cpp')
-rw-r--r-- | src/resolve/index.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/index.cpp b/src/resolve/index.cpp index f57fc3e6..2f4ece59 100644 --- a/src/resolve/index.cpp +++ b/src/resolve/index.cpp @@ -125,7 +125,7 @@ void Resolve_Index_Module_Base(const AST::Crate& crate, AST::Module& mod) _add_item(i.data.span, mod, IndexName::Namespace, i.name, i.is_pub, mv$(p)); ), (Crate, - ASSERT_BUG(i.data.span, crate.m_extern_crates.count(e.name) > 0, "Referenced crate '" << e.name << "' isn't loaded"); + ASSERT_BUG(i.data.span, crate.m_extern_crates.count(e.name) > 0, "Referenced crate '" << e.name << "' isn't loaded for `extern crate`"); p.bind( ::AST::PathBinding::make_Crate({ &crate.m_extern_crates.at(e.name) }) ); _add_item(i.data.span, mod, IndexName::Namespace, i.name, i.is_pub, mv$(p)); ), |