summaryrefslogtreecommitdiff
path: root/src/hir_expand
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-18 09:52:30 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-18 09:52:30 +0800
commit6a4bf8a5ac9c37fe98d8bb29ea265c73e595809c (patch)
treeab940dc15e9d1c2de036cfa8de01bf8c7b95418e /src/hir_expand
parent2cbced9aea31eb58ec87c4fa58761cdce5da47d3 (diff)
downloadmrust-6a4bf8a5ac9c37fe98d8bb29ea265c73e595809c.tar.gz
HIR Typecheck Validate - Fix some small bugs, start on ErasedType support
Diffstat (limited to 'src/hir_expand')
-rw-r--r--src/hir_expand/closures.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir_expand/closures.cpp b/src/hir_expand/closures.cpp
index aaa6bd85..f5fb2366 100644
--- a/src/hir_expand/closures.cpp
+++ b/src/hir_expand/closures.cpp
@@ -221,6 +221,9 @@ namespace {
DEBUG("Locals");
for(auto& ty : root.m_bindings)
visit_type(ty);
+
+ for(auto& ty : root.m_erased_types)
+ visit_type(ty);
}
void visit_node_ptr(::HIR::ExprNodeP& node) override