summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-07-07 05:49:17 +1000
committerJohn Hodge <tpg@mutabah.net>2016-07-07 05:49:17 +1000
commit977be3a912941e5cc944ea6870b50d13937c9f27 (patch)
tree0a884232d5269ef6706755a0191bcbac1ef02a36 /src
parentf9c65798a26800cb2a24f827bcf8943e4a68775a (diff)
downloadmrust-977be3a912941e5cc944ea6870b50d13937c9f27.tar.gz
HIR Typecheck - Resolve ivar in searching for trait impl
Diffstat (limited to 'src')
-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