diff options
| author | Ralf Jung <post@ralfj.de> | 2022-03-02 19:20:27 -0500 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-03-02 19:20:27 -0500 |
| commit | c45a42a3327baeb6bfd05a0d95e795a9e65a88b2 (patch) | |
| tree | 8626fae166a81c332b15287bff0e6828a1602837 | |
| parent | 35020280a05d82117c6796db8c63debbb8a76837 (diff) | |
| download | rust-c45a42a3327baeb6bfd05a0d95e795a9e65a88b2.tar.gz rust-c45a42a3327baeb6bfd05a0d95e795a9e65a88b2.zip | |
bless clippy
| -rw-r--r-- | tests/ui/modulo_one.stderr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/modulo_one.stderr b/tests/ui/modulo_one.stderr index 34f762bbb92..03f460897fc 100644 --- a/tests/ui/modulo_one.stderr +++ b/tests/ui/modulo_one.stderr @@ -1,18 +1,18 @@ -error: this arithmetic operation will overflow +error: this operation will panic at runtime --> $DIR/modulo_one.rs:11:5 | LL | i32::MIN % (-1); // also caught by rustc | ^^^^^^^^^^^^^^^ attempt to compute the remainder of `i32::MIN % -1_i32`, which would overflow | - = note: `#[deny(arithmetic_overflow)]` on by default + = note: `#[deny(unconditional_panic)]` on by default -error: this arithmetic operation will overflow +error: this operation will panic at runtime --> $DIR/modulo_one.rs:21:5 | LL | INT_MIN % NEG_ONE; // also caught by rustc | ^^^^^^^^^^^^^^^^^ attempt to compute the remainder of `i64::MIN % -1_i64`, which would overflow -error: this arithmetic operation will overflow +error: this operation will panic at runtime --> $DIR/modulo_one.rs:22:5 | LL | INT_MIN % STATIC_NEG_ONE; // ONLY caught by rustc |
