Recover when failing to normalize closure signature.
This commit is contained in:
parent
2e45cd4b69
commit
0161ecd13f
7 changed files with 34 additions and 9 deletions
|
@ -686,6 +686,7 @@ fn codegen_stmt<'tcx>(
|
|||
substs,
|
||||
ty::ClosureKind::FnOnce,
|
||||
)
|
||||
.expect("failed to normalize and resolve closure during codegen")
|
||||
.polymorphize(fx.tcx);
|
||||
let func_ref = fx.get_function_ref(instance);
|
||||
let func_addr = fx.bcx.ins().func_addr(fx.pointer_type, func_ref);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue