summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hir_conv/resolve_ufcs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir_conv/resolve_ufcs.cpp b/src/hir_conv/resolve_ufcs.cpp
index 9187c733..0b28349f 100644
--- a/src/hir_conv/resolve_ufcs.cpp
+++ b/src/hir_conv/resolve_ufcs.cpp
@@ -251,7 +251,7 @@ namespace {
TODO(sp, "Self when monomorphising trait args");
}
else if( ge.binding < 256 ) {
- assert(ge.binding < trait_path.m_params.m_types.size());
+ ASSERT_BUG(sp, ge.binding < trait_path.m_params.m_types.size(), "Binding out of range in " << ty << " for trait path " << trait_path);
return trait_path.m_params.m_types[ge.binding];
}
else {