diff options
author | John Hodge <tpg@mutabah.net> | 2016-11-19 17:07:39 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-11-19 17:07:39 +0800 |
commit | 9c1e91a788aa7ebed9db0255b54b1cdc602533ae (patch) | |
tree | c045500289d06d7962e25ba4a959f20d4c8dbf6b | |
parent | 15e1f7df180f6346a86cb7b45efcb756af688c48 (diff) | |
download | mrust-9c1e91a788aa7ebed9db0255b54b1cdc602533ae.tar.gz |
MIR Check - Monomorphise types from enums
-rw-r--r-- | src/mir/check.cpp | 2 |
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; ) ) |