Skip to content

Commit a72fd24

Browse files
committed
Remove attr checking from hir_analysis
1 parent 470e4ca commit a72fd24

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

compiler/rustc_hir_analysis/src/check/intrinsic.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -205,17 +205,6 @@ pub(crate) fn check_intrinsic_type(
205205
};
206206
let n_lts = 0;
207207
let (n_tps, n_cts, inputs, output) = match intrinsic_name {
208-
_ if has_autodiff => {
209-
let sig = tcx.fn_sig(intrinsic_id.to_def_id());
210-
let sig = sig.skip_binder();
211-
let n_tps = generics.own_counts().types;
212-
let n_cts = generics.own_counts().consts;
213-
214-
let inputs = sig.skip_binder().inputs().to_vec();
215-
let output = sig.skip_binder().output();
216-
217-
(n_tps, n_cts, inputs, output)
218-
}
219208
sym::enzyme_autodiff => (4, 0, vec![param(0), param(1), param(2)], param(3)),
220209
sym::abort => (0, 0, vec![], tcx.types.never),
221210
sym::unreachable => (0, 0, vec![], tcx.types.never),

0 commit comments

Comments
 (0)