diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-06-04 18:05:19 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-06-04 18:05:19 +0800 |
commit | 733f1ba26d61745f8daa21ea9feb8c0752ec71fa (patch) | |
tree | f34f5effb38bd3f6cc0c0800add6335d360d6df1 /src/hir/hir_ops.cpp | |
parent | 6343f85577b2a28fe2476860420a6d7f394a98d1 (diff) | |
download | mrust-733f1ba26d61745f8daa21ea9feb8c0752ec71fa.tar.gz |
HIR Ops - Remove unused case from impl matching (slight speedup)
Diffstat (limited to 'src/hir/hir_ops.cpp')
-rw-r--r-- | src/hir/hir_ops.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir/hir_ops.cpp b/src/hir/hir_ops.cpp index a484b5eb..9e867980 100644 --- a/src/hir/hir_ops.cpp +++ b/src/hir/hir_ops.cpp @@ -20,7 +20,7 @@ namespace { bool matches_type_int(const ::HIR::TypeRef& left, const ::HIR::TypeRef& right_in, ::HIR::t_cb_resolve_type ty_res, bool expand_generic) { assert(! left.m_data.is_Infer() ); - const auto& right = (right_in.m_data.is_Infer() || (right_in.m_data.is_Generic() && expand_generic) ? ty_res(right_in) : right_in); + const auto& right = (right_in.m_data.is_Infer() ? ty_res(right_in) : right_in); if( right_in.m_data.is_Generic() ) expand_generic = false; |