diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-03 12:58:24 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-03 12:58:24 +0800 |
commit | 054889f94962caf08937831b1d083e921facd35d (patch) | |
tree | 84a36905bc356dcb44dfa76dfcd29a80f36cae73 /src | |
parent | d97e6ed14e09f3e37d84d5f19a9ae3658bce408b (diff) | |
download | mrust-054889f94962caf08937831b1d083e921facd35d.tar.gz |
HIR Typecheck Expr - Improve bug message
Diffstat (limited to 'src')
-rw-r--r-- | src/hir_typeck/expr_cs.cpp | 2 |
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); |