summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-03 12:58:24 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-03 12:58:24 +0800
commit054889f94962caf08937831b1d083e921facd35d (patch)
tree84a36905bc356dcb44dfa76dfcd29a80f36cae73
parentd97e6ed14e09f3e37d84d5f19a9ae3658bce408b (diff)
downloadmrust-054889f94962caf08937831b1d083e921facd35d.tar.gz
HIR Typecheck Expr - Improve bug message
-rw-r--r--src/hir_typeck/expr_cs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir_typeck/expr_cs.cpp b/src/hir_typeck/expr_cs.cpp
index a33226f3..eff5cc53 100644
--- a/src/hir_typeck/expr_cs.cpp
+++ b/src/hir_typeck/expr_cs.cpp
@@ -1124,7 +1124,7 @@ namespace {
(Generic,
switch(node.m_target) {
case ::HIR::ExprNode_PathValue::UNKNOWN:
- BUG(sp, "Unknown target PathValue encountered with Generic path");
+ BUG(sp, "_PathValue with target=UNKNOWN and a Generic path - " << e.m_path);
case ::HIR::ExprNode_PathValue::FUNCTION: {
const auto& f = this->context.m_crate.get_function_by_path(sp, e.m_path);
fix_param_count(sp, this->context, e, f.m_params, e.m_params);