diff options
| author | Michael Goulet <michael@errs.io> | 2024-01-05 23:41:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-05 23:41:43 -0500 |
| commit | a95a363dbab113bcee3bbe3f8b0f8d854297d0fe (patch) | |
| tree | 901a6cd33824e303dff46f7cbd20da2c6b0646c2 | |
| parent | b3f307434e2bcf8d26f7f0cd413f98caa70c2e26 (diff) | |
| parent | 97c82385114dfb8aa30b0fd63aa06c201aeb65d9 (diff) | |
Rollup merge of #119628 - RalfJung:duplicate-test, r=compiler-errors
remove duplicate test This was added in https://github.com/rust-lang/rust/commit/ace6fc3646332485aeefead6b768a93450c2dd71 where overflowing-rsh-6 differed from overflowing-rsh-5 in a feature gate, but the feature has since been stabilized, making the tests 100% identical. Most of these tests in numbers-arithmetic could be put into one file rather than having so many files that all test the same lint... but it doesn't seem worth the effort. After https://github.com/rust-lang/rust/pull/119432 we might be able to remove most of them entirely as they will be covered by the new tests added there.
| -rw-r--r-- | tests/ui/numbers-arithmetic/overflowing-rsh-6.rs | 9 | ||||
| -rw-r--r-- | tests/ui/numbers-arithmetic/overflowing-rsh-6.stderr | 14 |
2 files changed, 0 insertions, 23 deletions
diff --git a/tests/ui/numbers-arithmetic/overflowing-rsh-6.rs b/tests/ui/numbers-arithmetic/overflowing-rsh-6.rs deleted file mode 100644 index f75e779ed15..00000000000 --- a/tests/ui/numbers-arithmetic/overflowing-rsh-6.rs +++ /dev/null @@ -1,9 +0,0 @@ -// build-fail -// compile-flags: -C debug-assertions - -#![deny(arithmetic_overflow)] - -fn main() { - let _n = 1i64 >> [64][0]; - //~^ ERROR: this arithmetic operation will overflow -} diff --git a/tests/ui/numbers-arithmetic/overflowing-rsh-6.stderr b/tests/ui/numbers-arithmetic/overflowing-rsh-6.stderr deleted file mode 100644 index 005f7378226..00000000000 --- a/tests/ui/numbers-arithmetic/overflowing-rsh-6.stderr +++ /dev/null @@ -1,14 +0,0 @@ -error: this arithmetic operation will overflow - --> $DIR/overflowing-rsh-6.rs:7:14 - | -LL | let _n = 1i64 >> [64][0]; - | ^^^^^^^^^^^^^^^ attempt to shift right by `64_i32`, which would overflow - | -note: the lint level is defined here - --> $DIR/overflowing-rsh-6.rs:4:9 - | -LL | #![deny(arithmetic_overflow)] - | ^^^^^^^^^^^^^^^^^^^ - -error: aborting due to 1 previous error - |
