1
- error: this arithmetic operation will overflow
1
+ error: this operation will panic at runtime
2
2
--> $DIR/issue-8460-const.rs:13:36
3
3
|
4
4
LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err());
5
5
| ^^^^^^^^^^^^^^^ attempt to compute `isize::MIN / -1_isize`, which would overflow
6
6
|
7
- = note: `#[deny(arithmetic_overflow )]` on by default
7
+ = note: `#[deny(unconditional_panic )]` on by default
8
8
9
- error: this arithmetic operation will overflow
9
+ error: this operation will panic at runtime
10
10
--> $DIR/issue-8460-const.rs:15:36
11
11
|
12
12
LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err());
13
13
| ^^^^^^^^^^^^ attempt to compute `i8::MIN / -1_i8`, which would overflow
14
14
15
- error: this arithmetic operation will overflow
15
+ error: this operation will panic at runtime
16
16
--> $DIR/issue-8460-const.rs:17:36
17
17
|
18
18
LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err());
19
19
| ^^^^^^^^^^^^^ attempt to compute `i16::MIN / -1_i16`, which would overflow
20
20
21
- error: this arithmetic operation will overflow
21
+ error: this operation will panic at runtime
22
22
--> $DIR/issue-8460-const.rs:19:36
23
23
|
24
24
LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err());
25
25
| ^^^^^^^^^^^^^ attempt to compute `i32::MIN / -1_i32`, which would overflow
26
26
27
- error: this arithmetic operation will overflow
27
+ error: this operation will panic at runtime
28
28
--> $DIR/issue-8460-const.rs:21:36
29
29
|
30
30
LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err());
31
31
| ^^^^^^^^^^^^^ attempt to compute `i64::MIN / -1_i64`, which would overflow
32
32
33
- error: this arithmetic operation will overflow
33
+ error: this operation will panic at runtime
34
34
--> $DIR/issue-8460-const.rs:23:36
35
35
|
36
36
LL | assert!(thread::spawn(move|| { i128::MIN / -1; }).join().is_err());
@@ -41,8 +41,6 @@ error: this operation will panic at runtime
41
41
|
42
42
LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err());
43
43
| ^^^^^^^^^^ attempt to divide `1_isize` by zero
44
- |
45
- = note: `#[deny(unconditional_panic)]` on by default
46
44
47
45
error: this operation will panic at runtime
48
46
--> $DIR/issue-8460-const.rs:27:36
@@ -74,37 +72,37 @@ error: this operation will panic at runtime
74
72
LL | assert!(thread::spawn(move|| { 1i128 / 0; }).join().is_err());
75
73
| ^^^^^^^^^ attempt to divide `1_i128` by zero
76
74
77
- error: this arithmetic operation will overflow
75
+ error: this operation will panic at runtime
78
76
--> $DIR/issue-8460-const.rs:37:36
79
77
|
80
78
LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err());
81
79
| ^^^^^^^^^^^^^^^ attempt to compute the remainder of `isize::MIN % -1_isize`, which would overflow
82
80
83
- error: this arithmetic operation will overflow
81
+ error: this operation will panic at runtime
84
82
--> $DIR/issue-8460-const.rs:39:36
85
83
|
86
84
LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err());
87
85
| ^^^^^^^^^^^^ attempt to compute the remainder of `i8::MIN % -1_i8`, which would overflow
88
86
89
- error: this arithmetic operation will overflow
87
+ error: this operation will panic at runtime
90
88
--> $DIR/issue-8460-const.rs:41:36
91
89
|
92
90
LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err());
93
91
| ^^^^^^^^^^^^^ attempt to compute the remainder of `i16::MIN % -1_i16`, which would overflow
94
92
95
- error: this arithmetic operation will overflow
93
+ error: this operation will panic at runtime
96
94
--> $DIR/issue-8460-const.rs:43:36
97
95
|
98
96
LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err());
99
97
| ^^^^^^^^^^^^^ attempt to compute the remainder of `i32::MIN % -1_i32`, which would overflow
100
98
101
- error: this arithmetic operation will overflow
99
+ error: this operation will panic at runtime
102
100
--> $DIR/issue-8460-const.rs:45:36
103
101
|
104
102
LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err());
105
103
| ^^^^^^^^^^^^^ attempt to compute the remainder of `i64::MIN % -1_i64`, which would overflow
106
104
107
- error: this arithmetic operation will overflow
105
+ error: this operation will panic at runtime
108
106
--> $DIR/issue-8460-const.rs:47:36
109
107
|
110
108
LL | assert!(thread::spawn(move|| { i128::MIN % -1; }).join().is_err());
0 commit comments