summaryrefslogtreecommitdiff
path: root/src/hir/hir.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-01 16:06:23 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-01 16:06:23 +0800
commit6724e74e23f52c955a48f38a868605604956bf2a (patch)
tree3a6e57840cb11f049a3a9f4fb62206b5ccd1eea7 /src/hir/hir.cpp
parentbdf2166e25572b9b03eb8155e2f5b4587378fbe4 (diff)
downloadmrust-6724e74e23f52c955a48f38a868605604956bf2a.tar.gz
HIR Typecheck - Altered ! handling to be an ivar type, fix fuzzy matches in expand_associated_types
Diffstat (limited to 'src/hir/hir.cpp')
-rw-r--r--src/hir/hir.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hir/hir.cpp b/src/hir/hir.cpp
index 09187ae8..e090b795 100644
--- a/src/hir/hir.cpp
+++ b/src/hir/hir.cpp
@@ -48,6 +48,7 @@ namespace {
switch(right.m_data.as_Infer().ty_class)
{
case ::HIR::InferClass::None:
+ case ::HIR::InferClass::Diverge:
return left.m_data.is_Generic();
case ::HIR::InferClass::Integer:
TU_IFLET(::HIR::TypeRef::Data, left.m_data, Primitive, le,