File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 23
23
#![ feature( const_ptr_read) ]
24
24
#![ feature( const_convert) ]
25
25
#![ feature( const_option) ]
26
+ #![ feature( lint_reasons) ]
26
27
#![ feature( const_deref) ]
27
28
#![ feature( const_heap) ]
28
29
#![ feature( const_iter) ]
Original file line number Diff line number Diff line change @@ -211,6 +211,9 @@ fn ctz_array_lut<const LEN: usize>(x: usize) -> u32 {
211
211
let mut array = [ 0u8 ; LEN ] ;
212
212
// `[T]::iter_mut` is unusable in `const fn` [ref:const_slice_iter]
213
213
// `core::array::from_fn` is not `const fn` [ref:const_array_from_fn]
214
+ // FIXME: `needless_range_loop` false positive
215
+ // <https://github.com/rust-lang/rust-clippy/issues/10524>
216
+ #[ expect( clippy:: needless_range_loop) ]
214
217
for i in 0 ..array. len ( ) {
215
218
array[ i] = i. trailing_zeros ( ) as u8 ;
216
219
}
You can’t perform that action at this time.
0 commit comments