summaryrefslogtreecommitdiff
path: root/src/hir_conv/bind.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-28 20:24:31 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-28 20:24:31 +0800
commitf749f53986f7a0a78949d62d7ee39905899c61d5 (patch)
treec0e975c05da3d887ef8086aca17e345d3d37bef7 /src/hir_conv/bind.cpp
parent47026f277478ffbadb5daa2d85b4600cbec52c9e (diff)
downloadmrust-f749f53986f7a0a78949d62d7ee39905899c61d5.tar.gz
Resolve Absolute - Fix incorrect lookup mode for MaybeBind
Diffstat (limited to 'src/hir_conv/bind.cpp')
-rw-r--r--src/hir_conv/bind.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir_conv/bind.cpp b/src/hir_conv/bind.cpp
index d9527ccd..18e97a72 100644
--- a/src/hir_conv/bind.cpp
+++ b/src/hir_conv/bind.cpp
@@ -210,7 +210,7 @@ namespace {
// Unit-like struct match or a constant
TU_MATCH_DEF( ::HIR::ValueItem, (it->second->ent), (e2),
(
- ERROR(sp, E0000, "Value pattern pointing to unexpected type")
+ ERROR(sp, E0000, "Value pattern " << pat << " pointing to unexpected item type - " << it->second->ent.tag_str())
),
(Constant,
// Store reference to this item for later use