Do not normalize closure signature when building FnOnce shim
This commit is contained in:
parent
3066253050
commit
f700ee4e70
7 changed files with 20 additions and 18 deletions
|
@ -682,7 +682,6 @@ fn codegen_stmt<'tcx>(
|
|||
args,
|
||||
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