diff options
author | John Hodge <tpg@mutabah.net> | 2016-07-11 18:23:40 +1000 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-07-11 18:23:40 +1000 |
commit | fe63cbd3ad64cfd19349f6e3061ec9d04f3cb288 (patch) | |
tree | bb5c686ccd0b3bb62646b7c47023ea65141c05bd /src | |
parent | 765c4a43dadaff1d31ea22db45ec54e5c7fe6290 (diff) | |
download | mrust-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.cpp | 2 |
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"); } } |