File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,8 @@ symbols! {
280
280
IoSeek ,
281
281
IoWrite ,
282
282
IpAddr ,
283
+ Ipv4Addr ,
284
+ Ipv6Addr ,
283
285
IrTyKind ,
284
286
Is ,
285
287
Item ,
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ pub enum IpAddr {
68
68
/// assert!("0000000.0.0.0".parse::<Ipv4Addr>().is_err()); // first octet is a zero in octal
69
69
/// assert!("0xcb.0x0.0x71.0x00".parse::<Ipv4Addr>().is_err()); // all octets are in hex
70
70
/// ```
71
+ #[ rustc_diagnostic_item = "Ipv4Addr" ]
71
72
#[ derive( Copy , Clone , PartialEq , Eq ) ]
72
73
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
73
74
pub struct Ipv4Addr {
@@ -160,6 +161,7 @@ impl Hash for Ipv4Addr {
160
161
/// assert_eq!("::1".parse(), Ok(localhost));
161
162
/// assert_eq!(localhost.is_loopback(), true);
162
163
/// ```
164
+ #[ rustc_diagnostic_item = "Ipv6Addr" ]
163
165
#[ derive( Copy , Clone , PartialEq , Eq ) ]
164
166
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
165
167
pub struct Ipv6Addr {
You can’t perform that action at this time.
0 commit comments