From f869ebb5ee56bb63b8e67c9f1ce1b9c45f70a305 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Fri, 18 Nov 2016 12:07:13 +0800 Subject: HIR Expand Closures - Fix types in args/return types --- src/hir_expand/closures.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hir_expand/closures.cpp b/src/hir_expand/closures.cpp index f5fb2366..ccd293af 100644 --- a/src/hir_expand/closures.cpp +++ b/src/hir_expand/closures.cpp @@ -630,6 +630,10 @@ namespace { DEBUG("-- Fixing types in body code"); ExprVisitor_Fixup fixup { m_resolve.m_crate, monomorph_cb }; fixup.visit_root( body_code ); + + DEBUG("-- Fixing types in signature"); + fixup.visit_type( args_ty ); + fixup.visit_type( ret_type ); } // --- -- cgit v1.2.3