1- error: this arithmetic operation will overflow
1+ error: this operation will panic at runtime
22 --> $DIR/issue-8460-const.rs:13:36
33 |
44LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err());
55 | ^^^^^^^^^^^^^^^ attempt to compute `isize::MIN / -1_isize`, which would overflow
66 |
7- = note: `#[deny(arithmetic_overflow )]` on by default
7+ = note: `#[deny(unconditional_panic )]` on by default
88
9- error: this arithmetic operation will overflow
9+ error: this operation will panic at runtime
1010 --> $DIR/issue-8460-const.rs:15:36
1111 |
1212LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err());
1313 | ^^^^^^^^^^^^ attempt to compute `i8::MIN / -1_i8`, which would overflow
1414
15- error: this arithmetic operation will overflow
15+ error: this operation will panic at runtime
1616 --> $DIR/issue-8460-const.rs:17:36
1717 |
1818LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err());
1919 | ^^^^^^^^^^^^^ attempt to compute `i16::MIN / -1_i16`, which would overflow
2020
21- error: this arithmetic operation will overflow
21+ error: this operation will panic at runtime
2222 --> $DIR/issue-8460-const.rs:19:36
2323 |
2424LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err());
2525 | ^^^^^^^^^^^^^ attempt to compute `i32::MIN / -1_i32`, which would overflow
2626
27- error: this arithmetic operation will overflow
27+ error: this operation will panic at runtime
2828 --> $DIR/issue-8460-const.rs:21:36
2929 |
3030LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err());
3131 | ^^^^^^^^^^^^^ attempt to compute `i64::MIN / -1_i64`, which would overflow
3232
33- error: this arithmetic operation will overflow
33+ error: this operation will panic at runtime
3434 --> $DIR/issue-8460-const.rs:23:36
3535 |
3636LL | assert!(thread::spawn(move|| { i128::MIN / -1; }).join().is_err());
@@ -41,8 +41,6 @@ error: this operation will panic at runtime
4141 |
4242LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err());
4343 | ^^^^^^^^^^ attempt to divide `1_isize` by zero
44- |
45- = note: `#[deny(unconditional_panic)]` on by default
4644
4745error: this operation will panic at runtime
4846 --> $DIR/issue-8460-const.rs:27:36
@@ -74,37 +72,37 @@ error: this operation will panic at runtime
7472LL | assert!(thread::spawn(move|| { 1i128 / 0; }).join().is_err());
7573 | ^^^^^^^^^ attempt to divide `1_i128` by zero
7674
77- error: this arithmetic operation will overflow
75+ error: this operation will panic at runtime
7876 --> $DIR/issue-8460-const.rs:37:36
7977 |
8078LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err());
8179 | ^^^^^^^^^^^^^^^ attempt to compute the remainder of `isize::MIN % -1_isize`, which would overflow
8280
83- error: this arithmetic operation will overflow
81+ error: this operation will panic at runtime
8482 --> $DIR/issue-8460-const.rs:39:36
8583 |
8684LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err());
8785 | ^^^^^^^^^^^^ attempt to compute the remainder of `i8::MIN % -1_i8`, which would overflow
8886
89- error: this arithmetic operation will overflow
87+ error: this operation will panic at runtime
9088 --> $DIR/issue-8460-const.rs:41:36
9189 |
9290LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err());
9391 | ^^^^^^^^^^^^^ attempt to compute the remainder of `i16::MIN % -1_i16`, which would overflow
9492
95- error: this arithmetic operation will overflow
93+ error: this operation will panic at runtime
9694 --> $DIR/issue-8460-const.rs:43:36
9795 |
9896LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err());
9997 | ^^^^^^^^^^^^^ attempt to compute the remainder of `i32::MIN % -1_i32`, which would overflow
10098
101- error: this arithmetic operation will overflow
99+ error: this operation will panic at runtime
102100 --> $DIR/issue-8460-const.rs:45:36
103101 |
104102LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err());
105103 | ^^^^^^^^^^^^^ attempt to compute the remainder of `i64::MIN % -1_i64`, which would overflow
106104
107- error: this arithmetic operation will overflow
105+ error: this operation will panic at runtime
108106 --> $DIR/issue-8460-const.rs:47:36
109107 |
110108LL | assert!(thread::spawn(move|| { i128::MIN % -1; }).join().is_err());
0 commit comments