Do not normalize closure signature when building FnOnce shim
This commit is contained in:
parent
d390c002ae
commit
0c83e434e1
@ -682,7 +682,6 @@ fn codegen_stmt<'tcx>(
|
|||||||
args,
|
args,
|
||||||
ty::ClosureKind::FnOnce,
|
ty::ClosureKind::FnOnce,
|
||||||
)
|
)
|
||||||
.expect("failed to normalize and resolve closure during codegen")
|
|
||||||
.polymorphize(fx.tcx);
|
.polymorphize(fx.tcx);
|
||||||
let func_ref = fx.get_function_ref(instance);
|
let func_ref = fx.get_function_ref(instance);
|
||||||
let func_addr = fx.bcx.ins().func_addr(fx.pointer_type, func_ref);
|
let func_addr = fx.bcx.ins().func_addr(fx.pointer_type, func_ref);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user