summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-04-16 18:33:56 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-04-16 18:33:56 +0800
commitd05c637f9affe9af906ee72bcf47a20b4fe5022c (patch)
treecf9eff091918e40a1313fd34a729c73590b2ee5e
parent98b3c18bb8072cea3ef17f29d07470b4a2c6d8ce (diff)
downloadmrust-d05c637f9affe9af906ee72bcf47a20b4fe5022c.tar.gz
Typecheck static - Allow fuzzy matches of associated types
-rw-r--r--src/hir_typeck/static.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir_typeck/static.cpp b/src/hir_typeck/static.cpp
index 5aa02a9a..1bc6820c 100644
--- a/src/hir_typeck/static.cpp
+++ b/src/hir_typeck/static.cpp
@@ -588,7 +588,7 @@ bool StaticTraitResolve::find_impl__check_crate_raw(
//auto cmp = have .match_test_generics_fuzz(sp, exp, cb_ident, cb_match);
auto cmp = exp .match_test_generics_fuzz(sp, have, cb_ident, cb_match);
- ASSERT_BUG(sp, cmp == ::HIR::Compare::Equal, "Assoc ty " << aty_name << " mismatch, " << have << " != des " << exp);
+ ASSERT_BUG(sp, cmp != ::HIR::Compare::Unequal, "Assoc ty " << aty_name << " mismatch, " << have << " != des " << exp);
return true;
});
}