Skip to content

Commit d8d8bf1

Browse files
committed
Remove attr checking from hir_analysis
1 parent 222886d commit d8d8bf1

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

compiler/rustc_hir_analysis/src/check/intrinsic.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -198,25 +198,8 @@ pub(crate) fn check_intrinsic_type(
198198
(Ty::new_ref(tcx, env_region, va_list_ty, mutbl), va_list_ty)
199199
};
200200

201-
// FIXME(Sa4dUs): Get the actual safety level of the diff function
202-
let safety = if has_autodiff {
203-
hir::Safety::Safe
204-
} else {
205-
intrinsic_operation_unsafety(tcx, intrinsic_id)
206-
};
207201
let n_lts = 0;
208202
let (n_tps, n_cts, inputs, output) = match intrinsic_name {
209-
_ if has_autodiff => {
210-
let sig = tcx.fn_sig(intrinsic_id.to_def_id());
211-
let sig = sig.skip_binder();
212-
let n_tps = generics.own_counts().types;
213-
let n_cts = generics.own_counts().consts;
214-
215-
let inputs = sig.skip_binder().inputs().to_vec();
216-
let output = sig.skip_binder().output();
217-
218-
(n_tps, n_cts, inputs, output)
219-
}
220203
sym::enzyme_autodiff => (4, 0, vec![param(0), param(1), param(2)], param(3)),
221204
sym::abort => (0, 0, vec![], tcx.types.never),
222205
sym::unreachable => (0, 0, vec![], tcx.types.never),

0 commit comments

Comments
 (0)