summaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-11-03 12:25:42 +1100
committerJohn Hodge <tpg@mutabah.net>2015-11-03 12:25:42 +1100
commit20ee7442f280ced9e5258876f9fd2212797f868b (patch)
tree2bb4fd40727ad0402d6d17a6501d5bab05fb5e48 /src/types.cpp
parent01ec57f596f89d4b52b378975f941e2ed8d2e563 (diff)
downloadmrust-20ee7442f280ced9e5258876f9fd2212797f868b.tar.gz
Remove embedded spans (will move to wrapping spans)
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp
index d25d3332..68347f55 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -576,7 +576,8 @@ Ordering TypeRef::ord(const TypeRef& x) const
DEBUG(*this << " == " << x);
if( ent.params ) DEBUG("- (L) " << *ent.params);
if( x_ent.params ) DEBUG("- (R) " << *x_ent.params);
- BUG(m_span, "Can't compare mismatched generic types");
+ throw ::std::runtime_error("Can't compare mismatched generic types");
+ //BUG(m_span, "Can't compare mismatched generic types");
}
else {
}