We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d814d10 commit 7913edbCopy full SHA for 7913edb
src/tools/clippy/tests/ui/indexing_slicing_index.rs
@@ -3,7 +3,7 @@
3
// We also check the out_of_bounds_indexing lint here, because it lints similar things and
4
// we want to avoid false positives.
5
#![warn(clippy::out_of_bounds_indexing)]
6
-#![allow(const_err, clippy::no_effect, clippy::unnecessary_operation)]
+#![allow(const_err, unconditional_panic, clippy::no_effect, clippy::unnecessary_operation)]
7
8
const ARR: [i32; 2] = [1, 2];
9
const REF: &i32 = &ARR[idx()]; // Ok, should not produce stderr.
0 commit comments