about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-03-02 19:20:27 -0500
committerRalf Jung <post@ralfj.de>2022-03-02 19:20:27 -0500
commitc45a42a3327baeb6bfd05a0d95e795a9e65a88b2 (patch)
tree8626fae166a81c332b15287bff0e6828a1602837
parent35020280a05d82117c6796db8c63debbb8a76837 (diff)
downloadrust-c45a42a3327baeb6bfd05a0d95e795a9e65a88b2.tar.gz
rust-c45a42a3327baeb6bfd05a0d95e795a9e65a88b2.zip
bless clippy
-rw-r--r--tests/ui/modulo_one.stderr8
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