diff --git a/src/tools/tidy/src/issues.txt b/src/tools/tidy/src/issues.txt index 81437473b2d..51af8898470 100644 --- a/src/tools/tidy/src/issues.txt +++ b/src/tools/tidy/src/issues.txt @@ -3225,7 +3225,6 @@ "ui/nll/user-annotations/issue-55748-pat-types-constrain-bindings.rs", "ui/nll/user-annotations/issue-57731-ascibed-coupled-types.rs", "ui/numbers-arithmetic/issue-105626.rs", -"ui/numbers-arithmetic/issue-8460-const.rs", "ui/numbers-arithmetic/issue-8460.rs", "ui/object-safety/issue-102762.rs", "ui/object-safety/issue-102933.rs", diff --git a/tests/ui/lint/lint-overflowing-ops.noopt.stderr b/tests/ui/lint/lint-overflowing-ops.noopt.stderr index 3cbd0548312..265868ccc61 100644 --- a/tests/ui/lint/lint-overflowing-ops.noopt.stderr +++ b/tests/ui/lint/lint-overflowing-ops.noopt.stderr @@ -13,7 +13,7 @@ LL | #![deny(arithmetic_overflow)] error: this arithmetic operation will overflow --> $DIR/lint-overflowing-ops.rs:226:15 | -LL | let _x = &(-i8::MIN); +LL | let _n = &(-i8::MIN); | ^^^^^^^^^^ attempt to negate `i8::MIN`, which would overflow error: this arithmetic operation will overflow @@ -775,7 +775,7 @@ LL | let _n = usize::MAX * 5; error: this arithmetic operation will overflow --> $DIR/lint-overflowing-ops.rs:225:14 | -LL | let _x = -i8::MIN; +LL | let _n = -i8::MIN; | ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow error: this operation will panic at runtime diff --git a/tests/ui/lint/lint-overflowing-ops.opt.stderr b/tests/ui/lint/lint-overflowing-ops.opt.stderr index 3cbd0548312..265868ccc61 100644 --- a/tests/ui/lint/lint-overflowing-ops.opt.stderr +++ b/tests/ui/lint/lint-overflowing-ops.opt.stderr @@ -13,7 +13,7 @@ LL | #![deny(arithmetic_overflow)] error: this arithmetic operation will overflow --> $DIR/lint-overflowing-ops.rs:226:15 | -LL | let _x = &(-i8::MIN); +LL | let _n = &(-i8::MIN); | ^^^^^^^^^^ attempt to negate `i8::MIN`, which would overflow error: this arithmetic operation will overflow @@ -775,7 +775,7 @@ LL | let _n = usize::MAX * 5; error: this arithmetic operation will overflow --> $DIR/lint-overflowing-ops.rs:225:14 | -LL | let _x = -i8::MIN; +LL | let _n = -i8::MIN; | ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow error: this operation will panic at runtime diff --git a/tests/ui/lint/lint-overflowing-ops.opt_with_overflow_checks.stderr b/tests/ui/lint/lint-overflowing-ops.opt_with_overflow_checks.stderr index 3cbd0548312..265868ccc61 100644 --- a/tests/ui/lint/lint-overflowing-ops.opt_with_overflow_checks.stderr +++ b/tests/ui/lint/lint-overflowing-ops.opt_with_overflow_checks.stderr @@ -13,7 +13,7 @@ LL | #![deny(arithmetic_overflow)] error: this arithmetic operation will overflow --> $DIR/lint-overflowing-ops.rs:226:15 | -LL | let _x = &(-i8::MIN); +LL | let _n = &(-i8::MIN); | ^^^^^^^^^^ attempt to negate `i8::MIN`, which would overflow error: this arithmetic operation will overflow @@ -775,7 +775,7 @@ LL | let _n = usize::MAX * 5; error: this arithmetic operation will overflow --> $DIR/lint-overflowing-ops.rs:225:14 | -LL | let _x = -i8::MIN; +LL | let _n = -i8::MIN; | ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow error: this operation will panic at runtime diff --git a/tests/ui/lint/lint-overflowing-ops.rs b/tests/ui/lint/lint-overflowing-ops.rs index 0a7fb342325..5305677d166 100644 --- a/tests/ui/lint/lint-overflowing-ops.rs +++ b/tests/ui/lint/lint-overflowing-ops.rs @@ -222,8 +222,8 @@ fn main() { let _n = usize::MAX * 5; //~ ERROR: arithmetic operation will overflow let _n = &(usize::MAX * 5); //~ ERROR: arithmetic operation will overflow - let _x = -i8::MIN; //~ ERROR this arithmetic operation will overflow - let _x = &(-i8::MIN); //~ ERROR this arithmetic operation will overflow + let _n = -i8::MIN; //~ ERROR this arithmetic operation will overflow + let _n = &(-i8::MIN); //~ ERROR this arithmetic operation will overflow // Division