summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-01-08 15:13:22 +0800
committerJohn Hodge <tpg@mutabah.net>2017-01-08 15:13:22 +0800
commit6f82579829f65e7921184d79158080e86f0b08e0 (patch)
tree8649b30e1c670ec484ed843642b51b845159ea07 /src
parent64f856a7bc35f5741f6b6387cb9d6b1b8891d313 (diff)
downloadmrust-6f82579829f65e7921184d79158080e86f0b08e0.tar.gz
Expand Associated Types - Minor fix to nested atys
Diffstat (limited to 'src')
-rw-r--r--src/hir_conv/expand_type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir_conv/expand_type.cpp b/src/hir_conv/expand_type.cpp
index dccccace..b37ea1ca 100644
--- a/src/hir_conv/expand_type.cpp
+++ b/src/hir_conv/expand_type.cpp
@@ -91,8 +91,8 @@ public:
const unsigned int MAX_RECURSIVE_TYPE_EXPANSIONS = 100;
while(num_exp < MAX_RECURSIVE_TYPE_EXPANSIONS)
{
+ ::HIR::Visitor::visit_type(new_type);
TU_IFLET(::HIR::TypeRef::Data, (new_type.m_data), Path, (e),
- ::HIR::Visitor::visit_type(new_type);
auto nt = ConvertHIR_ExpandAliases_GetExpansion(m_crate, e.path, m_in_expr);
if( nt == ::HIR::TypeRef() )
break;