|
1 | 1 | error: attempt to divide with overflow |
2 | | - --> $DIR/issue-8460-const.rs:7:36 |
| 2 | + --> $DIR/issue-8460-const.rs:9:36 |
3 | 3 | | |
4 | 4 | LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err()); |
5 | 5 | | ^^^^^^^^^^^^^^^ |
6 | 6 | | |
7 | 7 | note: lint level defined here |
8 | | - --> $DIR/issue-8460-const.rs:1:9 |
| 8 | + --> $DIR/issue-8460-const.rs:3:9 |
9 | 9 | | |
10 | 10 | LL | #![deny(const_err)] |
11 | 11 | | ^^^^^^^^^ |
12 | 12 |
|
13 | 13 | error: this expression will panic at runtime |
14 | | - --> $DIR/issue-8460-const.rs:7:36 |
| 14 | + --> $DIR/issue-8460-const.rs:9:36 |
15 | 15 | | |
16 | 16 | LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err()); |
17 | 17 | | ^^^^^^^^^^^^^^^ attempt to divide with overflow |
18 | 18 |
|
19 | 19 | error: attempt to divide with overflow |
20 | | - --> $DIR/issue-8460-const.rs:10:36 |
| 20 | + --> $DIR/issue-8460-const.rs:12:36 |
21 | 21 | | |
22 | 22 | LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err()); |
23 | 23 | | ^^^^^^^^^^^^ |
24 | 24 |
|
25 | 25 | error: this expression will panic at runtime |
26 | | - --> $DIR/issue-8460-const.rs:10:36 |
| 26 | + --> $DIR/issue-8460-const.rs:12:36 |
27 | 27 | | |
28 | 28 | LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err()); |
29 | 29 | | ^^^^^^^^^^^^ attempt to divide with overflow |
30 | 30 |
|
31 | 31 | error: attempt to divide with overflow |
32 | | - --> $DIR/issue-8460-const.rs:13:36 |
| 32 | + --> $DIR/issue-8460-const.rs:15:36 |
33 | 33 | | |
34 | 34 | LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err()); |
35 | 35 | | ^^^^^^^^^^^^^ |
36 | 36 |
|
37 | 37 | error: this expression will panic at runtime |
38 | | - --> $DIR/issue-8460-const.rs:13:36 |
| 38 | + --> $DIR/issue-8460-const.rs:15:36 |
39 | 39 | | |
40 | 40 | LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err()); |
41 | 41 | | ^^^^^^^^^^^^^ attempt to divide with overflow |
42 | 42 |
|
43 | 43 | error: attempt to divide with overflow |
44 | | - --> $DIR/issue-8460-const.rs:16:36 |
| 44 | + --> $DIR/issue-8460-const.rs:18:36 |
45 | 45 | | |
46 | 46 | LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err()); |
47 | 47 | | ^^^^^^^^^^^^^ |
48 | 48 |
|
49 | 49 | error: this expression will panic at runtime |
50 | | - --> $DIR/issue-8460-const.rs:16:36 |
| 50 | + --> $DIR/issue-8460-const.rs:18:36 |
51 | 51 | | |
52 | 52 | LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err()); |
53 | 53 | | ^^^^^^^^^^^^^ attempt to divide with overflow |
54 | 54 |
|
55 | 55 | error: attempt to divide with overflow |
56 | | - --> $DIR/issue-8460-const.rs:19:36 |
| 56 | + --> $DIR/issue-8460-const.rs:21:36 |
57 | 57 | | |
58 | 58 | LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err()); |
59 | 59 | | ^^^^^^^^^^^^^ |
60 | 60 |
|
61 | 61 | error: this expression will panic at runtime |
62 | | - --> $DIR/issue-8460-const.rs:19:36 |
| 62 | + --> $DIR/issue-8460-const.rs:21:36 |
63 | 63 | | |
64 | 64 | LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err()); |
65 | 65 | | ^^^^^^^^^^^^^ attempt to divide with overflow |
66 | 66 |
|
67 | 67 | error: attempt to divide by zero |
68 | | - --> $DIR/issue-8460-const.rs:22:36 |
| 68 | + --> $DIR/issue-8460-const.rs:24:36 |
69 | 69 | | |
70 | 70 | LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err()); |
71 | 71 | | ^^^^^^^^^^ |
72 | 72 |
|
73 | 73 | error: this expression will panic at runtime |
74 | | - --> $DIR/issue-8460-const.rs:22:36 |
| 74 | + --> $DIR/issue-8460-const.rs:24:36 |
75 | 75 | | |
76 | 76 | LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err()); |
77 | 77 | | ^^^^^^^^^^ attempt to divide by zero |
78 | 78 |
|
79 | 79 | error: attempt to divide by zero |
80 | | - --> $DIR/issue-8460-const.rs:25:36 |
| 80 | + --> $DIR/issue-8460-const.rs:27:36 |
81 | 81 | | |
82 | 82 | LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err()); |
83 | 83 | | ^^^^^^^ |
84 | 84 |
|
85 | 85 | error: this expression will panic at runtime |
86 | | - --> $DIR/issue-8460-const.rs:25:36 |
| 86 | + --> $DIR/issue-8460-const.rs:27:36 |
87 | 87 | | |
88 | 88 | LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err()); |
89 | 89 | | ^^^^^^^ attempt to divide by zero |
90 | 90 |
|
91 | 91 | error: attempt to divide by zero |
92 | | - --> $DIR/issue-8460-const.rs:28:36 |
| 92 | + --> $DIR/issue-8460-const.rs:30:36 |
93 | 93 | | |
94 | 94 | LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err()); |
95 | 95 | | ^^^^^^^^ |
96 | 96 |
|
97 | 97 | error: this expression will panic at runtime |
98 | | - --> $DIR/issue-8460-const.rs:28:36 |
| 98 | + --> $DIR/issue-8460-const.rs:30:36 |
99 | 99 | | |
100 | 100 | LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err()); |
101 | 101 | | ^^^^^^^^ attempt to divide by zero |
102 | 102 |
|
103 | 103 | error: attempt to divide by zero |
104 | | - --> $DIR/issue-8460-const.rs:31:36 |
| 104 | + --> $DIR/issue-8460-const.rs:33:36 |
105 | 105 | | |
106 | 106 | LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err()); |
107 | 107 | | ^^^^^^^^ |
108 | 108 |
|
109 | 109 | error: this expression will panic at runtime |
110 | | - --> $DIR/issue-8460-const.rs:31:36 |
| 110 | + --> $DIR/issue-8460-const.rs:33:36 |
111 | 111 | | |
112 | 112 | LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err()); |
113 | 113 | | ^^^^^^^^ attempt to divide by zero |
114 | 114 |
|
115 | 115 | error: attempt to divide by zero |
116 | | - --> $DIR/issue-8460-const.rs:34:36 |
| 116 | + --> $DIR/issue-8460-const.rs:36:36 |
117 | 117 | | |
118 | 118 | LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err()); |
119 | 119 | | ^^^^^^^^ |
120 | 120 |
|
121 | 121 | error: this expression will panic at runtime |
122 | | - --> $DIR/issue-8460-const.rs:34:36 |
| 122 | + --> $DIR/issue-8460-const.rs:36:36 |
123 | 123 | | |
124 | 124 | LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err()); |
125 | 125 | | ^^^^^^^^ attempt to divide by zero |
126 | 126 |
|
127 | 127 | error: attempt to calculate the remainder with overflow |
128 | | - --> $DIR/issue-8460-const.rs:37:36 |
| 128 | + --> $DIR/issue-8460-const.rs:39:36 |
129 | 129 | | |
130 | 130 | LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err()); |
131 | 131 | | ^^^^^^^^^^^^^^^ |
132 | 132 |
|
133 | 133 | error: this expression will panic at runtime |
134 | | - --> $DIR/issue-8460-const.rs:37:36 |
| 134 | + --> $DIR/issue-8460-const.rs:39:36 |
135 | 135 | | |
136 | 136 | LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err()); |
137 | 137 | | ^^^^^^^^^^^^^^^ attempt to calculate the remainder with overflow |
138 | 138 |
|
139 | 139 | error: attempt to calculate the remainder with overflow |
140 | | - --> $DIR/issue-8460-const.rs:40:36 |
| 140 | + --> $DIR/issue-8460-const.rs:42:36 |
141 | 141 | | |
142 | 142 | LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err()); |
143 | 143 | | ^^^^^^^^^^^^ |
144 | 144 |
|
145 | 145 | error: this expression will panic at runtime |
146 | | - --> $DIR/issue-8460-const.rs:40:36 |
| 146 | + --> $DIR/issue-8460-const.rs:42:36 |
147 | 147 | | |
148 | 148 | LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err()); |
149 | 149 | | ^^^^^^^^^^^^ attempt to calculate the remainder with overflow |
150 | 150 |
|
151 | 151 | error: attempt to calculate the remainder with overflow |
152 | | - --> $DIR/issue-8460-const.rs:43:36 |
| 152 | + --> $DIR/issue-8460-const.rs:45:36 |
153 | 153 | | |
154 | 154 | LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err()); |
155 | 155 | | ^^^^^^^^^^^^^ |
156 | 156 |
|
157 | 157 | error: this expression will panic at runtime |
158 | | - --> $DIR/issue-8460-const.rs:43:36 |
| 158 | + --> $DIR/issue-8460-const.rs:45:36 |
159 | 159 | | |
160 | 160 | LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err()); |
161 | 161 | | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow |
162 | 162 |
|
163 | 163 | error: attempt to calculate the remainder with overflow |
164 | | - --> $DIR/issue-8460-const.rs:46:36 |
| 164 | + --> $DIR/issue-8460-const.rs:48:36 |
165 | 165 | | |
166 | 166 | LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err()); |
167 | 167 | | ^^^^^^^^^^^^^ |
168 | 168 |
|
169 | 169 | error: this expression will panic at runtime |
170 | | - --> $DIR/issue-8460-const.rs:46:36 |
| 170 | + --> $DIR/issue-8460-const.rs:48:36 |
171 | 171 | | |
172 | 172 | LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err()); |
173 | 173 | | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow |
174 | 174 |
|
175 | 175 | error: attempt to calculate the remainder with overflow |
176 | | - --> $DIR/issue-8460-const.rs:49:36 |
| 176 | + --> $DIR/issue-8460-const.rs:51:36 |
177 | 177 | | |
178 | 178 | LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err()); |
179 | 179 | | ^^^^^^^^^^^^^ |
180 | 180 |
|
181 | 181 | error: this expression will panic at runtime |
182 | | - --> $DIR/issue-8460-const.rs:49:36 |
| 182 | + --> $DIR/issue-8460-const.rs:51:36 |
183 | 183 | | |
184 | 184 | LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err()); |
185 | 185 | | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow |
186 | 186 |
|
187 | 187 | error: attempt to calculate the remainder with a divisor of zero |
188 | | - --> $DIR/issue-8460-const.rs:52:36 |
| 188 | + --> $DIR/issue-8460-const.rs:54:36 |
189 | 189 | | |
190 | 190 | LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err()); |
191 | 191 | | ^^^^^^^^^^ |
192 | 192 |
|
193 | 193 | error: this expression will panic at runtime |
194 | | - --> $DIR/issue-8460-const.rs:52:36 |
| 194 | + --> $DIR/issue-8460-const.rs:54:36 |
195 | 195 | | |
196 | 196 | LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err()); |
197 | 197 | | ^^^^^^^^^^ attempt to calculate the remainder with a divisor of zero |
198 | 198 |
|
199 | 199 | error: attempt to calculate the remainder with a divisor of zero |
200 | | - --> $DIR/issue-8460-const.rs:55:36 |
| 200 | + --> $DIR/issue-8460-const.rs:57:36 |
201 | 201 | | |
202 | 202 | LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err()); |
203 | 203 | | ^^^^^^^ |
204 | 204 |
|
205 | 205 | error: this expression will panic at runtime |
206 | | - --> $DIR/issue-8460-const.rs:55:36 |
| 206 | + --> $DIR/issue-8460-const.rs:57:36 |
207 | 207 | | |
208 | 208 | LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err()); |
209 | 209 | | ^^^^^^^ attempt to calculate the remainder with a divisor of zero |
210 | 210 |
|
211 | 211 | error: attempt to calculate the remainder with a divisor of zero |
212 | | - --> $DIR/issue-8460-const.rs:58:36 |
| 212 | + --> $DIR/issue-8460-const.rs:60:36 |
213 | 213 | | |
214 | 214 | LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err()); |
215 | 215 | | ^^^^^^^^ |
216 | 216 |
|
217 | 217 | error: this expression will panic at runtime |
218 | | - --> $DIR/issue-8460-const.rs:58:36 |
| 218 | + --> $DIR/issue-8460-const.rs:60:36 |
219 | 219 | | |
220 | 220 | LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err()); |
221 | 221 | | ^^^^^^^^ attempt to calculate the remainder with a divisor of zero |
222 | 222 |
|
223 | 223 | error: attempt to calculate the remainder with a divisor of zero |
224 | | - --> $DIR/issue-8460-const.rs:61:36 |
| 224 | + --> $DIR/issue-8460-const.rs:63:36 |
225 | 225 | | |
226 | 226 | LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err()); |
227 | 227 | | ^^^^^^^^ |
228 | 228 |
|
229 | 229 | error: this expression will panic at runtime |
230 | | - --> $DIR/issue-8460-const.rs:61:36 |
| 230 | + --> $DIR/issue-8460-const.rs:63:36 |
231 | 231 | | |
232 | 232 | LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err()); |
233 | 233 | | ^^^^^^^^ attempt to calculate the remainder with a divisor of zero |
234 | 234 |
|
235 | 235 | error: attempt to calculate the remainder with a divisor of zero |
236 | | - --> $DIR/issue-8460-const.rs:64:36 |
| 236 | + --> $DIR/issue-8460-const.rs:66:36 |
237 | 237 | | |
238 | 238 | LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err()); |
239 | 239 | | ^^^^^^^^ |
240 | 240 |
|
241 | 241 | error: this expression will panic at runtime |
242 | | - --> $DIR/issue-8460-const.rs:64:36 |
| 242 | + --> $DIR/issue-8460-const.rs:66:36 |
243 | 243 | | |
244 | 244 | LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err()); |
245 | 245 | | ^^^^^^^^ attempt to calculate the remainder with a divisor of zero |
|
0 commit comments