summaryrefslogtreecommitdiff
path: root/src/hir/type.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-01-08 09:48:19 +0800
committerJohn Hodge <tpg@mutabah.net>2017-01-08 09:48:19 +0800
commit3f047e495793a1eed8244b96bc0dddff275cd19c (patch)
treea53112cc7ecfd414b1832a8a1a28c4643c100b46 /src/hir/type.cpp
parentaf7089cec53828533462af5349e861f7d524d22e (diff)
downloadmrust-3f047e495793a1eed8244b96bc0dddff275cd19c.tar.gz
All - i128/u182 support, typecheck and parse fixes
Diffstat (limited to 'src/hir/type.cpp')
-rw-r--r--src/hir/type.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hir/type.cpp b/src/hir/type.cpp
index f2709a90..039af5a5 100644
--- a/src/hir/type.cpp
+++ b/src/hir/type.cpp
@@ -31,6 +31,8 @@ namespace HIR {
case CoreType::I32: return os << "i32";
case CoreType::U64: return os << "u64";
case CoreType::I64: return os << "i64";
+ case CoreType::U128: return os << "u128";
+ case CoreType::I128: return os << "i128";
case CoreType::F32: return os << "f32";
case CoreType::F64: return os << "f64";
@@ -508,6 +510,7 @@ bool ::HIR::TypeRef::match_test_generics(const Span& sp, const ::HIR::TypeRef& x
case ::HIR::CoreType::I16: case ::HIR::CoreType::U16:
case ::HIR::CoreType::I32: case ::HIR::CoreType::U32:
case ::HIR::CoreType::I64: case ::HIR::CoreType::U64:
+ case ::HIR::CoreType::I128: case ::HIR::CoreType::U128:
case ::HIR::CoreType::Isize: case ::HIR::CoreType::Usize:
return Compare::Fuzzy;
//return true;
@@ -553,6 +556,7 @@ bool ::HIR::TypeRef::match_test_generics(const Span& sp, const ::HIR::TypeRef& x
case ::HIR::CoreType::I16: case ::HIR::CoreType::U16:
case ::HIR::CoreType::I32: case ::HIR::CoreType::U32:
case ::HIR::CoreType::I64: case ::HIR::CoreType::U64:
+ case ::HIR::CoreType::I128: case ::HIR::CoreType::U128:
case ::HIR::CoreType::Isize: case ::HIR::CoreType::Usize:
return Compare::Fuzzy;
default:
@@ -880,6 +884,7 @@ bool ::HIR::TypeRef::match_test_generics(const Span& sp, const ::HIR::TypeRef& x
case ::HIR::CoreType::I16: case ::HIR::CoreType::U16:
case ::HIR::CoreType::I32: case ::HIR::CoreType::U32:
case ::HIR::CoreType::I64: case ::HIR::CoreType::U64:
+ case ::HIR::CoreType::I128: case ::HIR::CoreType::U128:
case ::HIR::CoreType::Isize: case ::HIR::CoreType::Usize:
return Compare::Fuzzy;
default:
@@ -950,6 +955,7 @@ bool ::HIR::TypeRef::match_test_generics(const Span& sp, const ::HIR::TypeRef& x
case ::HIR::CoreType::I16: case ::HIR::CoreType::U16:
case ::HIR::CoreType::I32: case ::HIR::CoreType::U32:
case ::HIR::CoreType::I64: case ::HIR::CoreType::U64:
+ case ::HIR::CoreType::I128: case ::HIR::CoreType::U128:
case ::HIR::CoreType::Isize: case ::HIR::CoreType::Usize:
return Compare::Fuzzy;
default: