diff options
| author | ltdk <usr@ltdk.xyz> | 2023-09-30 13:01:40 -0400 |
|---|---|---|
| committer | ltdk <usr@ltdk.xyz> | 2023-10-13 02:15:19 -0400 |
| commit | 6b13950978c29e46636f3fb55aab1a479017045f (patch) | |
| tree | 82b78368c009c6d2015d6a1e1032fa276d5712af /library/core/src | |
| parent | 46bb49acb57a70afe938cd0188d4d28248ea1d51 (diff) | |
| download | rust-6b13950978c29e46636f3fb55aab1a479017045f.tar.gz rust-6b13950978c29e46636f3fb55aab1a479017045f.zip | |
Remove Not for IpAddr
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/net/ip_addr.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/library/core/src/net/ip_addr.rs b/library/core/src/net/ip_addr.rs index 9150469cdee..33cc9add839 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])* |
