summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hir_typeck/helpers.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hir_typeck/helpers.cpp b/src/hir_typeck/helpers.cpp
index 67f6445a..b86949b3 100644
--- a/src/hir_typeck/helpers.cpp
+++ b/src/hir_typeck/helpers.cpp
@@ -830,10 +830,11 @@ bool TraitResolution::iterate_bounds( ::std::function<bool(const ::HIR::GenericB
}
bool TraitResolution::find_trait_impls(const Span& sp,
const ::HIR::SimplePath& trait, const ::HIR::PathParams& params,
- const ::HIR::TypeRef& type,
+ const ::HIR::TypeRef& ty,
t_cb_trait_impl callback
) const
{
+ const auto& type = this->m_ivars.get_type(ty);
TRACE_FUNCTION_F("trait = " << trait << ", type = " << type);
// Closures are magical. They're unnamable and all trait impls come from within the compiler