We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5632d7 commit 9beb95dCopy full SHA for 9beb95d
1 file changed
compiler/rustc_codegen_llvm/src/builder/autodiff.rs
@@ -26,10 +26,11 @@ pub(crate) fn adjust_activity_to_abi<'tcx>(
26
27
// We don't actually pass the types back into the type system.
28
// All we do is decide how to handle the arguments.
29
- let sig = fn_ptr_ty.fn_sig(tcx).skip_binder();
+ let poly_sig = fn_ptr_ty.fn_sig(tcx);
30
+ let sig = poly_sig.skip_binder();
31
32
// FIXME(Sa4dUs): pass proper varargs once we have support for differentiating variadic functions
- let pci = PseudoCanonicalInput { typing_env, value: (sig, ty::List::empty()) };
33
+ let pci = PseudoCanonicalInput { typing_env, value: (poly_sig, ty::List::empty()) };
34
let Ok(fn_abi) = tcx.fn_abi_of_fn_ptr(pci) else {
35
bug!("failed to get fn_abi of fn_ptr with empty varargs");
36
};
0 commit comments