summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-24 18:30:18 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-24 18:30:18 +0800
commit79b77632259914f80a96df166bb3bef2cf7ecf55 (patch)
treec6257f1fb0605c102dd90478240895088b87bf5a
parent409e832de598ee1ee0e979200551c25bb5b6cafc (diff)
downloadmrust-79b77632259914f80a96df166bb3bef2cf7ecf55.tar.gz
HIR - (minor) Fix incorrect message when a value item can't be found
-rw-r--r--src/hir/hir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir/hir.cpp b/src/hir/hir.cpp
index 0b77c022..ea575d6f 100644
--- a/src/hir/hir.cpp
+++ b/src/hir/hir.cpp
@@ -470,7 +470,7 @@ const ::HIR::ValueItem& ::HIR::Crate::get_valitem_by_path(const Span& sp, const
}
auto it = mod->m_value_items.find( path.m_components.back() );
if( it == mod->m_value_items.end() ) {
- BUG(sp, "Could not find type name in " << path);
+ BUG(sp, "Could not find value name " << path);
}
return it->second->ent;