diff options
| author | Ralf Jung <post@ralfj.de> | 2022-08-31 15:24:40 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-08-31 15:24:40 +0200 |
| commit | 7913edb5c736b7c7d0918d32133999dfd6692604 (patch) | |
| tree | 7c466128592de180ce7aa35eddd108c1d90a930e | |
| parent | d814d10069122c61d7d275fe6305382703b60448 (diff) | |
| download | rust-7913edb5c736b7c7d0918d32133999dfd6692604.tar.gz rust-7913edb5c736b7c7d0918d32133999dfd6692604.zip | |
fix a clippy test
| -rw-r--r-- | src/tools/clippy/tests/ui/indexing_slicing_index.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/tests/ui/indexing_slicing_index.rs b/src/tools/clippy/tests/ui/indexing_slicing_index.rs index 45a430edcb5..7ebf6ee993c 100644 --- a/src/tools/clippy/tests/ui/indexing_slicing_index.rs +++ b/src/tools/clippy/tests/ui/indexing_slicing_index.rs @@ -3,7 +3,7 @@ // We also check the out_of_bounds_indexing lint here, because it lints similar things and // we want to avoid false positives. #![warn(clippy::out_of_bounds_indexing)] -#![allow(const_err, clippy::no_effect, clippy::unnecessary_operation)] +#![allow(const_err, unconditional_panic, clippy::no_effect, clippy::unnecessary_operation)] const ARR: [i32; 2] = [1, 2]; const REF: &i32 = &ARR[idx()]; // Ok, should not produce stderr. |
