diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-03-16 09:40:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-16 09:40:05 +0800 |
| commit | e0846806dbfaa8d838832f48771a8a709f35ee0a (patch) | |
| tree | 45f46999ca1eee33d3bc7bf6942416febe8bdc52 /library/core/src/net | |
| parent | 199e714a665fad0ca663e026e48ad26913379615 (diff) | |
| parent | 638b226a6ab5c5c784955068f57ae249e0ed0f92 (diff) | |
| download | rust-e0846806dbfaa8d838832f48771a8a709f35ee0a.tar.gz rust-e0846806dbfaa8d838832f48771a8a709f35ee0a.zip | |
Rollup merge of #138082 - thaliaarchi:slice-cfg-not-test, r=thomcc
Remove `#[cfg(not(test))]` gates in `core` These gates are unnecessary now that unit tests for `core` are in a separate package, `coretests`, instead of in the same files as the source code. They previously prevented the two `core` versions from conflicting with each other.
Diffstat (limited to 'library/core/src/net')
| -rw-r--r-- | library/core/src/net/ip_addr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/net/ip_addr.rs b/library/core/src/net/ip_addr.rs index 8e4417ec461..7aa5ed60d04 100644 --- a/library/core/src/net/ip_addr.rs +++ b/library/core/src/net/ip_addr.rs @@ -25,7 +25,7 @@ use crate::ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, Not}; /// assert_eq!(localhost_v4.is_ipv6(), false); /// assert_eq!(localhost_v4.is_ipv4(), true); /// ``` -#[cfg_attr(not(test), rustc_diagnostic_item = "IpAddr")] +#[rustc_diagnostic_item = "IpAddr"] #[stable(feature = "ip_addr", since = "1.7.0")] #[derive(Copy, Clone, Eq, PartialEq, Hash, PartialOrd, Ord)] pub enum IpAddr { |
