From 2bb000a3f777c4e78c05ce04dd53bb22b3a128b2 Mon Sep 17 00:00:00 2001 From: ltdk Date: Sat, 30 Sep 2023 13:01:40 -0400 Subject: [PATCH] Remove Not for IpAddr --- library/core/src/net/ip_addr.rs | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/library/core/src/net/ip_addr.rs b/library/core/src/net/ip_addr.rs index 9150469cdee5c..33cc9add839c8 100644 --- a/library/core/src/net/ip_addr.rs +++ b/library/core/src/net/ip_addr.rs @@ -2171,29 +2171,6 @@ impl Not for &'_ Ipv6Addr { } } -#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")] -impl Not for IpAddr { - type Output = IpAddr; - - #[inline] - fn not(self) -> IpAddr { - match self { - IpAddr::V4(v4) => IpAddr::V4(!v4), - IpAddr::V6(v6) => IpAddr::V6(!v6), - } - } -} - -#[stable(feature = "ip_bitops", since = "CURRENT_RUSTC_VERSION")] -impl Not for &'_ IpAddr { - type Output = IpAddr; - - #[inline] - fn not(self) -> IpAddr { - !*self - } -} - macro_rules! bitop_impls { ($( $(#[$attr:meta])*