about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJames Dietz <jamesthespeedy@gmail.com>2024-02-21 22:45:36 -0500
committerJames Dietz <jamesthespeedy@gmail.com>2024-02-22 10:04:20 -0500
commit669f8918459ac2855aa7902d3864de7072e93d94 (patch)
tree9d1dbbc467223b3f0734cc8d814d022605d89e8c
parent03f095f9f2f47a24253ea65f457ec46a0d9adba0 (diff)
downloadrust-669f8918459ac2855aa7902d3864de7072e93d94.tar.gz
rust-669f8918459ac2855aa7902d3864de7072e93d94.zip
remove exception
-rw-r--r--src/tools/tidy/src/issues.txt1
-rw-r--r--tests/ui/lint/lint-overflowing-ops.noopt.stderr4
-rw-r--r--tests/ui/lint/lint-overflowing-ops.opt.stderr4
-rw-r--r--tests/ui/lint/lint-overflowing-ops.opt_with_overflow_checks.stderr4
-rw-r--r--tests/ui/lint/lint-overflowing-ops.rs4
5 files changed, 8 insertions, 9 deletions
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