Skip to content

Commit 7913edb

Browse files
committed
fix a clippy test
1 parent d814d10 commit 7913edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/clippy/tests/ui/indexing_slicing_index.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// We also check the out_of_bounds_indexing lint here, because it lints similar things and
44
// we want to avoid false positives.
55
#![warn(clippy::out_of_bounds_indexing)]
6-
#![allow(const_err, clippy::no_effect, clippy::unnecessary_operation)]
6+
#![allow(const_err, unconditional_panic, clippy::no_effect, clippy::unnecessary_operation)]
77

88
const ARR: [i32; 2] = [1, 2];
99
const REF: &i32 = &ARR[idx()]; // Ok, should not produce stderr.

0 commit comments

Comments
 (0)