Skip to content

Commit 6b13950

Browse files
committed
Remove Not for IpAddr
1 parent 46bb49a commit 6b13950

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

library/core/src/net/ip_addr.rs

-23
Original file line numberDiff line numberDiff line change
@@ -2171,29 +2171,6 @@ impl Not for &'_ Ipv6Addr {
21712171
}
21722172
}
21732173

2174-
#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")]
2175-
impl Not for IpAddr {
2176-
type Output = IpAddr;
2177-
2178-
#[inline]
2179-
fn not(self) -> IpAddr {
2180-
match self {
2181-
IpAddr::V4(v4) => IpAddr::V4(!v4),
2182-
IpAddr::V6(v6) => IpAddr::V6(!v6),
2183-
}
2184-
}
2185-
}
2186-
2187-
#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")]
2188-
impl Not for &'_ IpAddr {
2189-
type Output = IpAddr;
2190-
2191-
#[inline]
2192-
fn not(self) -> IpAddr {
2193-
!*self
2194-
}
2195-
}
2196-
21972174
macro_rules! bitop_impls {
21982175
($(
21992176
$(#[$attr:meta])*

0 commit comments

Comments
 (0)