about summary refs log tree commit diff
path: root/library/std/src/net
diff options
context:
space:
mode:
authorMarkus Reiter <me@reitermark.us>2022-09-12 19:03:24 +0200
committerMarkus Reiter <me@reitermark.us>2022-09-12 19:46:51 +0200
commit14230a7f8e117aa049d3ae661fa00ded7edefc68 (patch)
treef52a155f67381c64bb69022804dd5d0702aa1774 /library/std/src/net
parent8c78400c541df0600132a726c7b58717b158befa (diff)
downloadrust-14230a7f8e117aa049d3ae661fa00ded7edefc68.tar.gz
rust-14230a7f8e117aa049d3ae661fa00ded7edefc68.zip
Simplify `clippy` fix.
Diffstat (limited to 'library/std/src/net')
-rw-r--r--library/std/src/net/ip_addr.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/library/std/src/net/ip_addr.rs b/library/std/src/net/ip_addr.rs
index 18cd43a6b83..4f14fc28038 100644
--- a/library/std/src/net/ip_addr.rs
+++ b/library/std/src/net/ip_addr.rs
@@ -34,11 +34,9 @@ use super::display_buffer::DisplayBuffer;
 #[derive(Copy, Clone, Eq, PartialEq, Hash, PartialOrd, Ord)]
 pub enum IpAddr {
     /// An IPv4 address.
-    #[cfg_attr(not(test), rustc_diagnostic_item = "ip_addr_variant_v4")]
     #[stable(feature = "ip_addr", since = "1.7.0")]
     V4(#[stable(feature = "ip_addr", since = "1.7.0")] Ipv4Addr),
     /// An IPv6 address.
-    #[cfg_attr(not(test), rustc_diagnostic_item = "ip_addr_variant_v6")]
     #[stable(feature = "ip_addr", since = "1.7.0")]
     V6(#[stable(feature = "ip_addr", since = "1.7.0")] Ipv6Addr),
 }