diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/hir_expand/closures.cpp | 3 |
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( |