Skip to content

Commit 9882eca

Browse files
committed
Remove some dead code
1 parent ff5a8ad commit 9882eca

File tree

1 file changed

+0
-5
lines changed
  • compiler/rustc_monomorphize/src/partitioning

1 file changed

+0
-5
lines changed

compiler/rustc_monomorphize/src/partitioning/autodiff.rs

-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ fn adjust_activity_to_abi<'tcx>(tcx: TyCtxt<'tcx>, fn_ty: Ty<'tcx>, da: &mut Vec
2121
let mut new_positions = vec![];
2222
for (i, ty) in sig.inputs().iter().enumerate() {
2323
if let Some(inner_ty) = ty.builtin_deref(true) {
24-
if ty.is_fn_ptr() {
25-
// FIXME(ZuseZ4): add a nicer error, or just figure out how to support them,
26-
// since Enzyme itself can handle them.
27-
tcx.dcx().err("function pointers are currently not supported in autodiff");
28-
}
2924
if inner_ty.is_slice() {
3025
// We know that the length will be passed as extra arg.
3126
if !da.is_empty() {

0 commit comments

Comments
 (0)