summaryrefslogtreecommitdiff
path: root/src/resolve/index.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-09-29 08:26:36 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-09-29 08:26:36 +0800
commit92c1dde06ce062af953a522200d6385d63712d28 (patch)
treee0d2e08ff0d83b1a7634ed38ec97a191f4855bad /src/resolve/index.cpp
parentcd1ff0bc296f9192c33b494421e4a86d532ceb70 (diff)
downloadmrust-92c1dde06ce062af953a522200d6385d63712d28.tar.gz
Expand - Load crates that were conditionally included
Diffstat (limited to 'src/resolve/index.cpp')
-rw-r--r--src/resolve/index.cpp2
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));
),