diff options
author | John Hodge <tpg@mutabah.net> | 2016-07-07 05:49:17 +1000 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-07-07 05:49:17 +1000 |
commit | 977be3a912941e5cc944ea6870b50d13937c9f27 (patch) | |
tree | 0a884232d5269ef6706755a0191bcbac1ef02a36 /src | |
parent | f9c65798a26800cb2a24f827bcf8943e4a68775a (diff) | |
download | mrust-977be3a912941e5cc944ea6870b50d13937c9f27.tar.gz |
HIR Typecheck - Resolve ivar in searching for trait impl
Diffstat (limited to 'src')
-rw-r--r-- | src/hir_typeck/helpers.cpp | 3 |
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 |