@@ -64,125 +64,161 @@ error: this expression will panic at runtime
64
64
LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err());
65
65
| ^^^^^^^^^^^^^ attempt to divide with overflow
66
66
67
- error: attempt to divide by zero
67
+ error: attempt to divide with overflow
68
+ --> $DIR/issue-8460-const.rs:25:36
69
+ |
70
+ LL | assert!(thread::spawn(move|| { i128::MIN / -1; }).join().is_err());
71
+ | ^^^^^^^^^^^^^^
72
+
73
+ error: this expression will panic at runtime
68
74
--> $DIR/issue-8460-const.rs:25:36
69
75
|
76
+ LL | assert!(thread::spawn(move|| { i128::MIN / -1; }).join().is_err());
77
+ | ^^^^^^^^^^^^^^ attempt to divide with overflow
78
+
79
+ error: attempt to divide by zero
80
+ --> $DIR/issue-8460-const.rs:28:36
81
+ |
70
82
LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err());
71
83
| ^^^^^^^^^^
72
84
73
85
error: attempt to divide by zero
74
- --> $DIR/issue-8460-const.rs:27 :36
86
+ --> $DIR/issue-8460-const.rs:30 :36
75
87
|
76
88
LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err());
77
89
| ^^^^^^^
78
90
79
91
error: attempt to divide by zero
80
- --> $DIR/issue-8460-const.rs:29 :36
92
+ --> $DIR/issue-8460-const.rs:32 :36
81
93
|
82
94
LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err());
83
95
| ^^^^^^^^
84
96
85
97
error: attempt to divide by zero
86
- --> $DIR/issue-8460-const.rs:31 :36
98
+ --> $DIR/issue-8460-const.rs:34 :36
87
99
|
88
100
LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err());
89
101
| ^^^^^^^^
90
102
91
103
error: attempt to divide by zero
92
- --> $DIR/issue-8460-const.rs:33 :36
104
+ --> $DIR/issue-8460-const.rs:36 :36
93
105
|
94
106
LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err());
95
107
| ^^^^^^^^
96
108
109
+ error: attempt to divide by zero
110
+ --> $DIR/issue-8460-const.rs:38:36
111
+ |
112
+ LL | assert!(thread::spawn(move|| { 1i128 / 0; }).join().is_err());
113
+ | ^^^^^^^^^
114
+
97
115
error: attempt to calculate the remainder with overflow
98
- --> $DIR/issue-8460-const.rs:35 :36
116
+ --> $DIR/issue-8460-const.rs:40 :36
99
117
|
100
118
LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err());
101
119
| ^^^^^^^^^^^^^^^
102
120
103
121
error: this expression will panic at runtime
104
- --> $DIR/issue-8460-const.rs:35 :36
122
+ --> $DIR/issue-8460-const.rs:40 :36
105
123
|
106
124
LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err());
107
125
| ^^^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
108
126
109
127
error: attempt to calculate the remainder with overflow
110
- --> $DIR/issue-8460-const.rs:38 :36
128
+ --> $DIR/issue-8460-const.rs:43 :36
111
129
|
112
130
LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err());
113
131
| ^^^^^^^^^^^^
114
132
115
133
error: this expression will panic at runtime
116
- --> $DIR/issue-8460-const.rs:38 :36
134
+ --> $DIR/issue-8460-const.rs:43 :36
117
135
|
118
136
LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err());
119
137
| ^^^^^^^^^^^^ attempt to calculate the remainder with overflow
120
138
121
139
error: attempt to calculate the remainder with overflow
122
- --> $DIR/issue-8460-const.rs:41 :36
140
+ --> $DIR/issue-8460-const.rs:46 :36
123
141
|
124
142
LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err());
125
143
| ^^^^^^^^^^^^^
126
144
127
145
error: this expression will panic at runtime
128
- --> $DIR/issue-8460-const.rs:41 :36
146
+ --> $DIR/issue-8460-const.rs:46 :36
129
147
|
130
148
LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err());
131
149
| ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
132
150
133
151
error: attempt to calculate the remainder with overflow
134
- --> $DIR/issue-8460-const.rs:44 :36
152
+ --> $DIR/issue-8460-const.rs:49 :36
135
153
|
136
154
LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err());
137
155
| ^^^^^^^^^^^^^
138
156
139
157
error: this expression will panic at runtime
140
- --> $DIR/issue-8460-const.rs:44 :36
158
+ --> $DIR/issue-8460-const.rs:49 :36
141
159
|
142
160
LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err());
143
161
| ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
144
162
145
163
error: attempt to calculate the remainder with overflow
146
- --> $DIR/issue-8460-const.rs:47 :36
164
+ --> $DIR/issue-8460-const.rs:52 :36
147
165
|
148
166
LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err());
149
167
| ^^^^^^^^^^^^^
150
168
151
169
error: this expression will panic at runtime
152
- --> $DIR/issue-8460-const.rs:47 :36
170
+ --> $DIR/issue-8460-const.rs:52 :36
153
171
|
154
172
LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err());
155
173
| ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
156
174
175
+ error: attempt to calculate the remainder with overflow
176
+ --> $DIR/issue-8460-const.rs:55:36
177
+ |
178
+ LL | assert!(thread::spawn(move|| { i128::MIN % -1; }).join().is_err());
179
+ | ^^^^^^^^^^^^^^
180
+
181
+ error: this expression will panic at runtime
182
+ --> $DIR/issue-8460-const.rs:55:36
183
+ |
184
+ LL | assert!(thread::spawn(move|| { i128::MIN % -1; }).join().is_err());
185
+ | ^^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
186
+
157
187
error: attempt to calculate the remainder with a divisor of zero
158
- --> $DIR/issue-8460-const.rs:50 :36
188
+ --> $DIR/issue-8460-const.rs:58 :36
159
189
|
160
190
LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err());
161
191
| ^^^^^^^^^^
162
192
163
193
error: attempt to calculate the remainder with a divisor of zero
164
- --> $DIR/issue-8460-const.rs:52 :36
194
+ --> $DIR/issue-8460-const.rs:60 :36
165
195
|
166
196
LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err());
167
197
| ^^^^^^^
168
198
169
199
error: attempt to calculate the remainder with a divisor of zero
170
- --> $DIR/issue-8460-const.rs:54 :36
200
+ --> $DIR/issue-8460-const.rs:62 :36
171
201
|
172
202
LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err());
173
203
| ^^^^^^^^
174
204
175
205
error: attempt to calculate the remainder with a divisor of zero
176
- --> $DIR/issue-8460-const.rs:56 :36
206
+ --> $DIR/issue-8460-const.rs:64 :36
177
207
|
178
208
LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err());
179
209
| ^^^^^^^^
180
210
181
211
error: attempt to calculate the remainder with a divisor of zero
182
- --> $DIR/issue-8460-const.rs:58 :36
212
+ --> $DIR/issue-8460-const.rs:66 :36
183
213
|
184
214
LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err());
185
215
| ^^^^^^^^
186
216
187
- error: aborting due to 30 previous errors
217
+ error: attempt to calculate the remainder with a divisor of zero
218
+ --> $DIR/issue-8460-const.rs:68:36
219
+ |
220
+ LL | assert!(thread::spawn(move|| { 1i128 % 0; }).join().is_err());
221
+ | ^^^^^^^^^
222
+
223
+ error: aborting due to 36 previous errors
188
224
0 commit comments