diff options
| author | bors <bors@rust-lang.org> | 2022-03-24 20:22:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-03-24 20:22:27 +0000 |
| commit | 63b8f01bb5ca277e7df8d7efe094ed4244c1790c (patch) | |
| tree | f4246d5d6dda964e54872e7cc58af2c7fe6b74ff /src/tools | |
| parent | 4b133a7e27c32e822e9ff774e4436f184f5a9752 (diff) | |
| parent | 440946af11391c50cda9f691fda0a507981d0268 (diff) | |
| download | rust-63b8f01bb5ca277e7df8d7efe094ed4244c1790c.tar.gz rust-63b8f01bb5ca277e7df8d7efe094ed4244c1790c.zip | |
Auto merge of #94934 - Lireer:const-prop-lint, r=oli-obk
Separate const prop lints from optimizations r? `@oli-obk` Separates lints and optimizations during const prop by moving the lints into their own file and checking them during post borrowck cleanup. Thanks to `@oli-obk` for mentoring me.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/clippy/tests/ui/crashes/ice-5497.stderr | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/crashes/ice-5497.stderr b/src/tools/clippy/tests/ui/crashes/ice-5497.stderr new file mode 100644 index 00000000000..e75e7dc9136 --- /dev/null +++ b/src/tools/clippy/tests/ui/crashes/ice-5497.stderr @@ -0,0 +1,10 @@ +error: this operation will panic at runtime + --> $DIR/ice-5497.rs:9:22 + | +LL | const OOB: i32 = [1][1] + T::OOB; + | ^^^^^^ index out of bounds: the length is 1 but the index is 1 + | + = note: `#[deny(unconditional_panic)]` on by default + +error: aborting due to previous error + |
