We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Ipv4Addr
Ipv6Addr
1 parent 414482f commit 07b3e2aCopy full SHA for 07b3e2a
1 file changed
library/core/src/net/ip_addr.rs
@@ -68,6 +68,7 @@ pub enum IpAddr {
68
/// assert!("0000000.0.0.0".parse::<Ipv4Addr>().is_err()); // first octet is a zero in octal
69
/// assert!("0xcb.0x0.0x71.0x00".parse::<Ipv4Addr>().is_err()); // all octets are in hex
70
/// ```
71
+#[rustc_diagnostic_item = "Ipv4Addr"]
72
#[derive(Copy, Clone, PartialEq, Eq)]
73
#[stable(feature = "rust1", since = "1.0.0")]
74
pub struct Ipv4Addr {
@@ -160,6 +161,7 @@ impl Hash for Ipv4Addr {
160
161
/// assert_eq!("::1".parse(), Ok(localhost));
162
/// assert_eq!(localhost.is_loopback(), true);
163
164
+#[rustc_diagnostic_item = "Ipv6Addr"]
165
166
167
pub struct Ipv6Addr {
0 commit comments