summaryrefslogtreecommitdiff
path: root/src/hir
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-06-04 18:05:19 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-06-04 18:05:19 +0800
commit733f1ba26d61745f8daa21ea9feb8c0752ec71fa (patch)
treef34f5effb38bd3f6cc0c0800add6335d360d6df1 /src/hir
parent6343f85577b2a28fe2476860420a6d7f394a98d1 (diff)
downloadmrust-733f1ba26d61745f8daa21ea9feb8c0752ec71fa.tar.gz
HIR Ops - Remove unused case from impl matching (slight speedup)
Diffstat (limited to 'src/hir')
-rw-r--r--src/hir/hir_ops.cpp2
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;