Skip to content

Commit 669f891

Browse files
committed
remove exception
1 parent 03f095f commit 669f891

5 files changed

+8
-9
lines changed

Diff for: src/tools/tidy/src/issues.txt

-1
Original file line numberDiff line numberDiff line change
@@ -3225,7 +3225,6 @@
32253225
"ui/nll/user-annotations/issue-55748-pat-types-constrain-bindings.rs",
32263226
"ui/nll/user-annotations/issue-57731-ascibed-coupled-types.rs",
32273227
"ui/numbers-arithmetic/issue-105626.rs",
3228-
"ui/numbers-arithmetic/issue-8460-const.rs",
32293228
"ui/numbers-arithmetic/issue-8460.rs",
32303229
"ui/object-safety/issue-102762.rs",
32313230
"ui/object-safety/issue-102933.rs",

Diff for: tests/ui/lint/lint-overflowing-ops.noopt.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LL | #![deny(arithmetic_overflow)]
1313
error: this arithmetic operation will overflow
1414
--> $DIR/lint-overflowing-ops.rs:226:15
1515
|
16-
LL | let _x = &(-i8::MIN);
16+
LL | let _n = &(-i8::MIN);
1717
| ^^^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
1818

1919
error: this arithmetic operation will overflow
@@ -775,7 +775,7 @@ LL | let _n = usize::MAX * 5;
775775
error: this arithmetic operation will overflow
776776
--> $DIR/lint-overflowing-ops.rs:225:14
777777
|
778-
LL | let _x = -i8::MIN;
778+
LL | let _n = -i8::MIN;
779779
| ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
780780

781781
error: this operation will panic at runtime

Diff for: tests/ui/lint/lint-overflowing-ops.opt.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LL | #![deny(arithmetic_overflow)]
1313
error: this arithmetic operation will overflow
1414
--> $DIR/lint-overflowing-ops.rs:226:15
1515
|
16-
LL | let _x = &(-i8::MIN);
16+
LL | let _n = &(-i8::MIN);
1717
| ^^^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
1818

1919
error: this arithmetic operation will overflow
@@ -775,7 +775,7 @@ LL | let _n = usize::MAX * 5;
775775
error: this arithmetic operation will overflow
776776
--> $DIR/lint-overflowing-ops.rs:225:14
777777
|
778-
LL | let _x = -i8::MIN;
778+
LL | let _n = -i8::MIN;
779779
| ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
780780

781781
error: this operation will panic at runtime

Diff for: tests/ui/lint/lint-overflowing-ops.opt_with_overflow_checks.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LL | #![deny(arithmetic_overflow)]
1313
error: this arithmetic operation will overflow
1414
--> $DIR/lint-overflowing-ops.rs:226:15
1515
|
16-
LL | let _x = &(-i8::MIN);
16+
LL | let _n = &(-i8::MIN);
1717
| ^^^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
1818

1919
error: this arithmetic operation will overflow
@@ -775,7 +775,7 @@ LL | let _n = usize::MAX * 5;
775775
error: this arithmetic operation will overflow
776776
--> $DIR/lint-overflowing-ops.rs:225:14
777777
|
778-
LL | let _x = -i8::MIN;
778+
LL | let _n = -i8::MIN;
779779
| ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
780780

781781
error: this operation will panic at runtime

Diff for: tests/ui/lint/lint-overflowing-ops.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ fn main() {
222222
let _n = usize::MAX * 5; //~ ERROR: arithmetic operation will overflow
223223
let _n = &(usize::MAX * 5); //~ ERROR: arithmetic operation will overflow
224224

225-
let _x = -i8::MIN; //~ ERROR this arithmetic operation will overflow
226-
let _x = &(-i8::MIN); //~ ERROR this arithmetic operation will overflow
225+
let _n = -i8::MIN; //~ ERROR this arithmetic operation will overflow
226+
let _n = &(-i8::MIN); //~ ERROR this arithmetic operation will overflow
227227

228228

229229
// Division

0 commit comments

Comments
 (0)