diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-06-04 09:45:02 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-06-04 09:45:02 +0800 |
commit | 828a19bd28eb39da6108545175bbb4427aaf2a4e (patch) | |
tree | 67d5ca720a981dc7815000cfb910015e05c1ed40 /src | |
parent | 2e07aafe55b0b10740ff8828fcfa911c0f448524 (diff) | |
download | mrust-828a19bd28eb39da6108545175bbb4427aaf2a4e.tar.gz |
HIR Typecheck - Remove assertion that static impls aren't fuzzy
Diffstat (limited to 'src')
-rw-r--r-- | src/hir_typeck/static.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir_typeck/static.cpp b/src/hir_typeck/static.cpp index b46567fd..ad0fc46b 100644 --- a/src/hir_typeck/static.cpp +++ b/src/hir_typeck/static.cpp @@ -1583,7 +1583,7 @@ bool StaticTraitResolve::can_unsize(const Span& sp, const ::HIR::TypeRef& dst_ty good = false; find_impl(sp, de->m_trait.m_path.m_path, de->m_trait.m_path.m_params, src_ty, [&](const auto impl, auto fuzz) { - assert( !fuzz ); + //ASSERT_BUG(sp, !fuzz, "Fuzzy match in can_unsize - " << dst_ty << " <- " << src_ty << " - " << impl); good = true; for(const auto& aty : de->m_trait.m_type_bounds) { auto atyv = impl.get_type(aty.first.c_str()); |