@@ -180,9 +180,69 @@ LL - let _ = std::net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0);
180
180
LL + let _ = std::net::Ipv6Addr::UNSPECIFIED;
181
181
|
182
182
183
+ error: hand-coded well-known IP address
184
+ --> tests/ui/ip_constant.rs:52:13
185
+ |
186
+ LL | let _ = (std::net::Ipv4Addr::new(127, 0, 0, 1));
187
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
188
+ |
189
+ help: use
190
+ |
191
+ LL - let _ = (std::net::Ipv4Addr::new(127, 0, 0, 1));
192
+ LL + let _ = std::net::Ipv4Addr::LOCALHOST;
193
+ |
194
+
195
+ error: hand-coded well-known IP address
196
+ --> tests/ui/ip_constant.rs:54:13
197
+ |
198
+ LL | let _ = (std::net::Ipv4Addr::new(255, 255, 255, 255));
199
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
200
+ |
201
+ help: use
202
+ |
203
+ LL - let _ = (std::net::Ipv4Addr::new(255, 255, 255, 255));
204
+ LL + let _ = std::net::Ipv4Addr::BROADCAST;
205
+ |
206
+
207
+ error: hand-coded well-known IP address
208
+ --> tests/ui/ip_constant.rs:56:13
209
+ |
210
+ LL | let _ = (std::net::Ipv4Addr::new(0, 0, 0, 0));
211
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
212
+ |
213
+ help: use
214
+ |
215
+ LL - let _ = (std::net::Ipv4Addr::new(0, 0, 0, 0));
216
+ LL + let _ = std::net::Ipv4Addr::UNSPECIFIED;
217
+ |
218
+
219
+ error: hand-coded well-known IP address
220
+ --> tests/ui/ip_constant.rs:59:13
221
+ |
222
+ LL | let _ = (std::net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1));
223
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
224
+ |
225
+ help: use
226
+ |
227
+ LL - let _ = (std::net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1));
228
+ LL + let _ = std::net::Ipv6Addr::LOCALHOST;
229
+ |
230
+
183
231
error: hand-coded well-known IP address
184
232
--> tests/ui/ip_constant.rs:61:13
185
233
|
234
+ LL | let _ = (std::net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0));
235
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
236
+ |
237
+ help: use
238
+ |
239
+ LL - let _ = (std::net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0));
240
+ LL + let _ = std::net::Ipv6Addr::UNSPECIFIED;
241
+ |
242
+
243
+ error: hand-coded well-known IP address
244
+ --> tests/ui/ip_constant.rs:75:13
245
+ |
186
246
LL | let _ = Ipv4Addr::new(CONST_U8_127, CONST_U8_0, CONST_U8_0, CONST_U8_1);
187
247
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
188
248
|
@@ -193,7 +253,7 @@ LL + let _ = Ipv4Addr::LOCALHOST;
193
253
|
194
254
195
255
error: hand-coded well-known IP address
196
- --> tests/ui/ip_constant.rs:63 :13
256
+ --> tests/ui/ip_constant.rs:77 :13
197
257
|
198
258
LL | let _ = Ipv4Addr::new(CONST_U8_255, CONST_U8_255, CONST_U8_255, CONST_U8_255);
199
259
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -205,7 +265,7 @@ LL + let _ = Ipv4Addr::BROADCAST;
205
265
|
206
266
207
267
error: hand-coded well-known IP address
208
- --> tests/ui/ip_constant.rs:65 :13
268
+ --> tests/ui/ip_constant.rs:79 :13
209
269
|
210
270
LL | let _ = Ipv4Addr::new(CONST_U8_0, CONST_U8_0, CONST_U8_0, CONST_U8_0);
211
271
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -217,7 +277,7 @@ LL + let _ = Ipv4Addr::UNSPECIFIED;
217
277
|
218
278
219
279
error: hand-coded well-known IP address
220
- --> tests/ui/ip_constant.rs:69 :13
280
+ --> tests/ui/ip_constant.rs:83 :13
221
281
|
222
282
LL | let _ = Ipv6Addr::new(
223
283
| _____________^
@@ -246,7 +306,7 @@ LL + let _ = Ipv6Addr::LOCALHOST;
246
306
|
247
307
248
308
error: hand-coded well-known IP address
249
- --> tests/ui/ip_constant.rs:81 :13
309
+ --> tests/ui/ip_constant.rs:95 :13
250
310
|
251
311
LL | let _ = Ipv6Addr::new(
252
312
| _____________^
@@ -275,7 +335,7 @@ LL + let _ = Ipv6Addr::UNSPECIFIED;
275
335
|
276
336
277
337
error: hand-coded well-known IP address
278
- --> tests/ui/ip_constant.rs:96 :13
338
+ --> tests/ui/ip_constant.rs:110 :13
279
339
|
280
340
LL | let _ = Ipv4Addr::new(126 + 1, 0, 0, 1);
281
341
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -287,7 +347,7 @@ LL + let _ = Ipv4Addr::LOCALHOST;
287
347
|
288
348
289
349
error: hand-coded well-known IP address
290
- --> tests/ui/ip_constant.rs:98 :13
350
+ --> tests/ui/ip_constant.rs:112 :13
291
351
|
292
352
LL | let _ = Ipv4Addr::new(254 + CONST_U8_1, 255, { 255 - CONST_U8_0 }, CONST_U8_255);
293
353
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -299,7 +359,7 @@ LL + let _ = Ipv4Addr::BROADCAST;
299
359
|
300
360
301
361
error: hand-coded well-known IP address
302
- --> tests/ui/ip_constant.rs:100 :13
362
+ --> tests/ui/ip_constant.rs:114 :13
303
363
|
304
364
LL | let _ = Ipv4Addr::new(0, CONST_U8_255 - 255, 0, { 1 + 0 - 1 });
305
365
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -311,7 +371,7 @@ LL + let _ = Ipv4Addr::UNSPECIFIED;
311
371
|
312
372
313
373
error: hand-coded well-known IP address
314
- --> tests/ui/ip_constant.rs:104 :13
374
+ --> tests/ui/ip_constant.rs:118 :13
315
375
|
316
376
LL | let _ = Ipv6Addr::new(0 + CONST_U16_0, 0, 0, 0, 0, 0, 0, 1);
317
377
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -323,7 +383,7 @@ LL + let _ = Ipv6Addr::LOCALHOST;
323
383
|
324
384
325
385
error: hand-coded well-known IP address
326
- --> tests/ui/ip_constant.rs:106 :13
386
+ --> tests/ui/ip_constant.rs:120 :13
327
387
|
328
388
LL | let _ = Ipv6Addr::new(0 + 0, 0, 0, 0, 0, { 2 - 1 - CONST_U16_1 }, 0, 1);
329
389
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -334,5 +394,5 @@ LL - let _ = Ipv6Addr::new(0 + 0, 0, 0, 0, 0, { 2 - 1 - CONST_U16_1 }, 0, 1)
334
394
LL + let _ = Ipv6Addr::LOCALHOST;
335
395
|
336
396
337
- error: aborting due to 25 previous errors
397
+ error: aborting due to 30 previous errors
338
398
0 commit comments