Skip to content

Commit cd68456

Browse files
committed
Remove normalize_erasing_late_bound_regions and simply .skip_binder() instead
1 parent 198fbdf commit cd68456

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_codegen_llvm/src/intrinsic.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,8 +1136,7 @@ fn codegen_autodiff<'ll, 'tcx>(
11361136
let fn_args = instance.args;
11371137
let callee_ty = instance.ty(tcx, bx.typing_env());
11381138

1139-
let sig = callee_ty.fn_sig(tcx);
1140-
let sig = tcx.normalize_erasing_late_bound_regions(bx.typing_env(), sig);
1139+
let sig = callee_ty.fn_sig(tcx).skip_binder();
11411140

11421141
let ret_ty = sig.output();
11431142
let llret_ty = bx.layout_of(ret_ty).llvm_type(bx);

0 commit comments

Comments
 (0)