Skip to content

Commit a71e691

Browse files
committed
Recover when failing to normalize closure signature.
1 parent f516ba2 commit a71e691

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/base.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,7 @@ fn codegen_stmt<'tcx>(
686686
substs,
687687
ty::ClosureKind::FnOnce,
688688
)
689+
.expect("failed to normalize and resolve closure during codegen")
689690
.polymorphize(fx.tcx);
690691
let func_ref = fx.get_function_ref(instance);
691692
let func_addr = fx.bcx.ins().func_addr(fx.pointer_type, func_ref);

0 commit comments

Comments
 (0)