Skip to content

Commit

Permalink
Do not normalize closure signature when building FnOnce shim
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Jan 22, 2024
1 parent d390c00 commit 0c83e43
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0c83e43

Please sign in to comment.