summaryrefslogtreecommitdiff
path: root/src/hir/type.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-07-09 21:48:13 +1000
committerJohn Hodge <tpg@mutabah.net>2016-07-09 21:48:13 +1000
commitc931008a52db95071955037fe4445e4e84c35f38 (patch)
treef5a86d6ad789569cf7aa521f163562d9801dcda6 /src/hir/type.cpp
parentc2c5de272b21d55b6d3fdf992e1cca07ae91673c (diff)
downloadmrust-c931008a52db95071955037fe4445e4e84c35f38.tar.gz
HIR Typecheck CS - Distinguish between "direction" of possible ivar values.
- When both sides are known, it propagates leftwards
Diffstat (limited to 'src/hir/type.cpp')
-rw-r--r--src/hir/type.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hir/type.cpp b/src/hir/type.cpp
index 3bdff34e..28d11aa9 100644
--- a/src/hir/type.cpp
+++ b/src/hir/type.cpp
@@ -33,6 +33,7 @@ namespace HIR {
case CoreType::Char: return os << "char";
case CoreType::Str: return os << "str";
}
+ assert(!"Bad CoreType value");
return os;
}
}
@@ -65,7 +66,7 @@ void ::HIR::TypeRef::fmt(::std::ostream& os) const
TU_MATCH(::HIR::TypeRef::TypePathBinding, (e.binding), (be),
(Unbound, os << "/*U*/";),
(Opaque, os << "/*O*/";),
- (Struct, os << "/*S/";),
+ (Struct, os << "/*S*/";),
(Enum, os << "/*E*/";)
)
),