diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-03-11 08:41:15 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-03-11 08:41:15 +0000 |
| commit | 9882eca151a4c1c604597acd98072babb9e6ffcf (patch) | |
| tree | c2cd7c668d349a65117bd1d6bac8d49c508d386d | |
| parent | ff5a8ad2abb45955dbeda46273242d6f0186cf2c (diff) | |
| download | rust-9882eca151a4c1c604597acd98072babb9e6ffcf.tar.gz rust-9882eca151a4c1c604597acd98072babb9e6ffcf.zip | |
Remove some dead code
| -rw-r--r-- | compiler/rustc_monomorphize/src/partitioning/autodiff.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_monomorphize/src/partitioning/autodiff.rs b/compiler/rustc_monomorphize/src/partitioning/autodiff.rs index 378b98c2807..ebe0b258c1b 100644 --- a/compiler/rustc_monomorphize/src/partitioning/autodiff.rs +++ b/compiler/rustc_monomorphize/src/partitioning/autodiff.rs @@ -21,11 +21,6 @@ fn adjust_activity_to_abi<'tcx>(tcx: TyCtxt<'tcx>, fn_ty: Ty<'tcx>, da: &mut Vec let mut new_positions = vec![]; for (i, ty) in sig.inputs().iter().enumerate() { if let Some(inner_ty) = ty.builtin_deref(true) { - if ty.is_fn_ptr() { - // FIXME(ZuseZ4): add a nicer error, or just figure out how to support them, - // since Enzyme itself can handle them. - tcx.dcx().err("function pointers are currently not supported in autodiff"); - } if inner_ty.is_slice() { // We know that the length will be passed as extra arg. if !da.is_empty() { |
