summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-22 18:54:04 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-22 18:54:04 +0800
commit4a70e38c072519785e70844fbf00310c14904f3d (patch)
tree500b1b9b5dc5cf07d80298f51bdd2f651b3ab990
parentffd0a5d215bfc74eb3657bc3feee321337243183 (diff)
downloadmrust-4a70e38c072519785e70844fbf00310c14904f3d.tar.gz
HIR Expand Closures - Better expand of closure types in captures
-rw-r--r--src/hir_expand/closures.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hir_expand/closures.cpp b/src/hir_expand/closures.cpp
index eab96d8e..1faa9401 100644
--- a/src/hir_expand/closures.cpp
+++ b/src/hir_expand/closures.cpp
@@ -610,7 +610,8 @@ namespace {
}
// - Fix type to replace closure types with known paths
- ExprVisitor_Fixup::fix_type(m_resolve.m_crate, monomorph_cb, ty_mono);
+ ExprVisitor_Fixup fixup { m_resolve.m_crate, monomorph_cb };
+ fixup.visit_type(ty_mono);
capture_types.push_back( ::HIR::VisEnt< ::HIR::TypeRef> { false, mv$(ty_mono) } );
}
auto closure_struct_path = m_new_type(