Skip to content

Commit

Permalink
fix a clippy test
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Aug 31, 2022
1 parent d814d10 commit 7913edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/clippy/tests/ui/indexing_slicing_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7913edb

Please sign in to comment.