summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-07-11 18:23:40 +1000
committerJohn Hodge <tpg@mutabah.net>2016-07-11 18:23:40 +1000
commitfe63cbd3ad64cfd19349f6e3061ec9d04f3cb288 (patch)
treebb5c686ccd0b3bb62646b7c47023ea65141c05bd /src
parent765c4a43dadaff1d31ea22db45ec54e5c7fe6290 (diff)
downloadmrust-fe63cbd3ad64cfd19349f6e3061ec9d04f3cb288.tar.gz
HIR Typecheck - Better error message when a type param is unknown in impl searching
Diffstat (limited to 'src')
-rw-r--r--src/hir_typeck/helpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir_typeck/helpers.cpp b/src/hir_typeck/helpers.cpp
index e06aa296..2ba08343 100644
--- a/src/hir_typeck/helpers.cpp
+++ b/src/hir_typeck/helpers.cpp
@@ -1707,7 +1707,7 @@ bool TraitResolution::find_trait_impls_crate(const Span& sp,
}
for(unsigned int i = 0; i < impl_params.size(); i ++ ) {
if( !impl_params[i] ) {
- BUG(sp, "Param " << i << " for impl " /*<< impl*/ << " wasn't constrained");
+ BUG(sp, "Param " << i << " for impl" << impl.m_params.fmt_args() << " " << trait << impl.m_trait_args << " for " << impl.m_type << " wasn't constrained");
}
}