summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-06 13:56:55 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-06 13:56:55 +0800
commita4d7a3d00401a30936854294813022a10684fd0e (patch)
tree1565060febbd555f895967f71675667a8edebc93 /src
parentc7e5105cb0c7e9badd3e6c894023c883dd64f05b (diff)
downloadmrust-a4d7a3d00401a30936854294813022a10684fd0e.tar.gz
HIR Typecheck Static - Expand associated after getting type from impl
Diffstat (limited to 'src')
-rw-r--r--src/hir_typeck/static.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hir_typeck/static.cpp b/src/hir_typeck/static.cpp
index 19af10bb..a7f09541 100644
--- a/src/hir_typeck/static.cpp
+++ b/src/hir_typeck/static.cpp
@@ -476,6 +476,7 @@ bool StaticTraitResolve::find_impl__check_crate(
else {
rv = this->find_impl(sp, aty_src_trait.m_path, aty_src_trait.m_params, b_ty_mono, [&](const auto& impl) {
::HIR::TypeRef have = impl.get_type(aty_name.c_str());
+ this->expand_associated_types(sp, have);
//auto cmp = have .match_test_generics_fuzz(sp, exp, cb_ident, cb_match);
auto cmp = exp .match_test_generics_fuzz(sp, have, cb_ident, cb_match);