From 4a70e38c072519785e70844fbf00310c14904f3d Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 22 Nov 2016 18:54:04 +0800 Subject: HIR Expand Closures - Better expand of closure types in captures --- src/hir_expand/closures.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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( -- cgit v1.2.3