@@ -180,9 +180,69 @@ LL - let _ = std::net::Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0);
180180LL + let _ = std::net::Ipv6Addr::UNSPECIFIED;
181181 |
182182
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+
183231error: hand-coded well-known IP address
184232 --> tests/ui/ip_constant.rs:61:13
185233 |
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+ |
186246LL | let _ = Ipv4Addr::new(CONST_U8_127, CONST_U8_0, CONST_U8_0, CONST_U8_1);
187247 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
188248 |
@@ -193,7 +253,7 @@ LL + let _ = Ipv4Addr::LOCALHOST;
193253 |
194254
195255error: hand-coded well-known IP address
196- --> tests/ui/ip_constant.rs:63 :13
256+ --> tests/ui/ip_constant.rs:77 :13
197257 |
198258LL | let _ = Ipv4Addr::new(CONST_U8_255, CONST_U8_255, CONST_U8_255, CONST_U8_255);
199259 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -205,7 +265,7 @@ LL + let _ = Ipv4Addr::BROADCAST;
205265 |
206266
207267error: hand-coded well-known IP address
208- --> tests/ui/ip_constant.rs:65 :13
268+ --> tests/ui/ip_constant.rs:79 :13
209269 |
210270LL | let _ = Ipv4Addr::new(CONST_U8_0, CONST_U8_0, CONST_U8_0, CONST_U8_0);
211271 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -217,7 +277,7 @@ LL + let _ = Ipv4Addr::UNSPECIFIED;
217277 |
218278
219279error: hand-coded well-known IP address
220- --> tests/ui/ip_constant.rs:69 :13
280+ --> tests/ui/ip_constant.rs:83 :13
221281 |
222282LL | let _ = Ipv6Addr::new(
223283 | _____________^
@@ -246,7 +306,7 @@ LL + let _ = Ipv6Addr::LOCALHOST;
246306 |
247307
248308error: hand-coded well-known IP address
249- --> tests/ui/ip_constant.rs:81 :13
309+ --> tests/ui/ip_constant.rs:95 :13
250310 |
251311LL | let _ = Ipv6Addr::new(
252312 | _____________^
@@ -275,7 +335,7 @@ LL + let _ = Ipv6Addr::UNSPECIFIED;
275335 |
276336
277337error: hand-coded well-known IP address
278- --> tests/ui/ip_constant.rs:96 :13
338+ --> tests/ui/ip_constant.rs:110 :13
279339 |
280340LL | let _ = Ipv4Addr::new(126 + 1, 0, 0, 1);
281341 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -287,7 +347,7 @@ LL + let _ = Ipv4Addr::LOCALHOST;
287347 |
288348
289349error: hand-coded well-known IP address
290- --> tests/ui/ip_constant.rs:98 :13
350+ --> tests/ui/ip_constant.rs:112 :13
291351 |
292352LL | let _ = Ipv4Addr::new(254 + CONST_U8_1, 255, { 255 - CONST_U8_0 }, CONST_U8_255);
293353 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -299,7 +359,7 @@ LL + let _ = Ipv4Addr::BROADCAST;
299359 |
300360
301361error: hand-coded well-known IP address
302- --> tests/ui/ip_constant.rs:100 :13
362+ --> tests/ui/ip_constant.rs:114 :13
303363 |
304364LL | let _ = Ipv4Addr::new(0, CONST_U8_255 - 255, 0, { 1 + 0 - 1 });
305365 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -311,7 +371,7 @@ LL + let _ = Ipv4Addr::UNSPECIFIED;
311371 |
312372
313373error: hand-coded well-known IP address
314- --> tests/ui/ip_constant.rs:104 :13
374+ --> tests/ui/ip_constant.rs:118 :13
315375 |
316376LL | let _ = Ipv6Addr::new(0 + CONST_U16_0, 0, 0, 0, 0, 0, 0, 1);
317377 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -323,7 +383,7 @@ LL + let _ = Ipv6Addr::LOCALHOST;
323383 |
324384
325385error: hand-coded well-known IP address
326- --> tests/ui/ip_constant.rs:106 :13
386+ --> tests/ui/ip_constant.rs:120 :13
327387 |
328388LL | let _ = Ipv6Addr::new(0 + 0, 0, 0, 0, 0, { 2 - 1 - CONST_U16_1 }, 0, 1);
329389 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -334,5 +394,5 @@ LL - let _ = Ipv6Addr::new(0 + 0, 0, 0, 0, 0, { 2 - 1 - CONST_U16_1 }, 0, 1)
334394LL + let _ = Ipv6Addr::LOCALHOST;
335395 |
336396
337- error: aborting due to 25 previous errors
397+ error: aborting due to 30 previous errors
338398
0 commit comments