summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-19 17:07:39 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-19 17:07:39 +0800
commit9c1e91a788aa7ebed9db0255b54b1cdc602533ae (patch)
treec045500289d06d7962e25ba4a959f20d4c8dbf6b
parent15e1f7df180f6346a86cb7b45efcb756af688c48 (diff)
downloadmrust-9c1e91a788aa7ebed9db0255b54b1cdc602533ae.tar.gz
MIR Check - Monomorphise types from enums
-rw-r--r--src/mir/check.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mir/check.cpp b/src/mir/check.cpp
index b033ec51..e11c3b4b 100644
--- a/src/mir/check.cpp
+++ b/src/mir/check.cpp
@@ -225,6 +225,7 @@ namespace {
for(const auto& fld : ve)
tys.push_back( monomorphise_type(sp, enm.m_params, te.path.m_data.as_Generic().m_params, fld.ent) );
tmp = ::HIR::TypeRef( mv$(tys) );
+ this->resolve.expand_associated_types(sp, tmp);
return tmp;
),
(Struct,
@@ -233,6 +234,7 @@ namespace {
for(const auto& fld : ve)
tys.push_back( monomorphise_type(sp, enm.m_params, te.path.m_data.as_Generic().m_params, fld.second.ent) );
tmp = ::HIR::TypeRef( mv$(tys) );
+ this->resolve.expand_associated_types(sp, tmp);
return tmp;
)
)