mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 23:24:24 +00:00
bless clippy
This commit is contained in:
parent
35020280a0
commit
c45a42a332
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue