summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-25 08:47:23 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-25 08:47:23 +0800
commitce9f6edce92d1579a4ea108a5fc6aa58971400d4 (patch)
tree45b6b4d939f6b1e8ab988ecc6ba145d3f423de74 /src
parenta8c8ec18d30e2c31282aff4a0f78752146656d8b (diff)
downloadmrust-ce9f6edce92d1579a4ea108a5fc6aa58971400d4.tar.gz
HACK - Assume that unknown-sized arrays compare equal
Diffstat (limited to 'src')
-rw-r--r--src/hir/type.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hir/type.cpp b/src/hir/type.cpp
index c4dfb9c3..57e57c16 100644
--- a/src/hir/type.cpp
+++ b/src/hir/type.cpp
@@ -219,8 +219,11 @@ bool ::HIR::TypeRef::operator==(const ::HIR::TypeRef& x) const
return false;
if( xe.size_val != te.size_val )
return false;
- if( te.size_val == ~0u )
+ if( te.size_val == ~0u ) {
+ // LAZY - Assume equal
+ return true;
assert(!"TODO: Compre array types with non-resolved sizes");
+ }
return true;
),
(Slice,