Skip to content

Commit

Permalink
merge const_ipv4 / const_ipv6 feature gate into 'ip' feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Oct 12, 2024
1 parent fb20e4d commit 48bc761
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions library/core/src/net/ip_addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ impl IpAddr {
/// assert_eq!(IpAddr::V4(Ipv4Addr::new(80, 9, 12, 3)).is_global(), true);
/// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0x1c9, 0, 0, 0xafc8, 0, 0x1)).is_global(), true);
/// ```
#[rustc_const_unstable(feature = "const_ip", issue = "76205")]
#[rustc_const_unstable(feature = "ip", issue = "27709")]
#[unstable(feature = "ip", issue = "27709")]
#[must_use]
#[inline]
Expand Down Expand Up @@ -348,7 +348,7 @@ impl IpAddr {
/// true
/// );
/// ```
#[rustc_const_unstable(feature = "const_ip", issue = "76205")]
#[rustc_const_unstable(feature = "ip", issue = "27709")]
#[unstable(feature = "ip", issue = "27709")]
#[must_use]
#[inline]
Expand Down Expand Up @@ -776,7 +776,7 @@ impl Ipv4Addr {
///
/// // For a complete overview see the IANA IPv4 Special-Purpose Address Registry.
/// ```
#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]
#[rustc_const_unstable(feature = "ip", issue = "27709")]
#[unstable(feature = "ip", issue = "27709")]
#[must_use]
#[inline]
Expand Down Expand Up @@ -813,7 +813,7 @@ impl Ipv4Addr {
/// assert_eq!(Ipv4Addr::new(100, 127, 255, 255).is_shared(), true);
/// assert_eq!(Ipv4Addr::new(100, 128, 0, 0).is_shared(), false);
/// ```
#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]
#[rustc_const_unstable(feature = "ip", issue = "27709")]
#[unstable(feature = "ip", issue = "27709")]
#[must_use]
#[inline]
Expand Down Expand Up @@ -841,7 +841,7 @@ impl Ipv4Addr {
/// assert_eq!(Ipv4Addr::new(198, 19, 255, 255).is_benchmarking(), true);
/// assert_eq!(Ipv4Addr::new(198, 20, 0, 0).is_benchmarking(), false);
/// ```
#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]
#[rustc_const_unstable(feature = "ip", issue = "27709")]
#[unstable(feature = "ip", issue = "27709")]
#[must_use]
#[inline]
Expand Down Expand Up @@ -878,7 +878,7 @@ impl Ipv4Addr {
/// // The broadcast address is not considered as reserved for future use by this implementation
/// assert_eq!(Ipv4Addr::new(255, 255, 255, 255).is_reserved(), false);
/// ```
#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]
#[rustc_const_unstable(feature = "ip", issue = "27709")]
#[unstable(feature = "ip", issue = "27709")]
#[must_use]
#[inline]
Expand Down Expand Up @@ -1510,7 +1510,7 @@ impl Ipv6Addr {
///
/// // For a complete overview see the IANA IPv6 Special-Purpose Address Registry.
/// ```
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
#[rustc_const_unstable(feature = "ip", issue = "27709")]
#[unstable(feature = "ip", issue = "27709")]
#[must_use]
#[inline]
Expand Down Expand Up @@ -1562,7 +1562,7 @@ impl Ipv6Addr {
/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_unique_local(), false);
/// assert_eq!(Ipv6Addr::new(0xfc02, 0, 0, 0, 0, 0, 0, 0).is_unique_local(), true);
/// ```
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
#[rustc_const_unstable(feature = "ip", issue = "27709")]
#[unstable(feature = "ip", issue = "27709")]
#[must_use]
#[inline]
Expand Down Expand Up @@ -1591,7 +1591,7 @@ impl Ipv6Addr {
/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_unicast(), true);
/// assert_eq!(Ipv6Addr::new(0xff00, 0, 0, 0, 0, 0, 0, 0).is_unicast(), false);
/// ```
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
#[rustc_const_unstable(feature = "ip", issue = "27709")]
#[unstable(feature = "ip", issue = "27709")]
#[must_use]
#[inline]
Expand Down Expand Up @@ -1643,7 +1643,7 @@ impl Ipv6Addr {
/// assert_eq!(Ipv6Addr::new(0xfe80, 0, 0, 1, 0, 0, 0, 0).is_unicast_link_local(), true);
/// assert_eq!(Ipv6Addr::new(0xfe81, 0, 0, 0, 0, 0, 0, 0).is_unicast_link_local(), true);
/// ```
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
#[rustc_const_unstable(feature = "ip", issue = "27709")]
#[unstable(feature = "ip", issue = "27709")]
#[must_use]
#[inline]
Expand All @@ -1668,7 +1668,7 @@ impl Ipv6Addr {
/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_documentation(), false);
/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_documentation(), true);
/// ```
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
#[rustc_const_unstable(feature = "ip", issue = "27709")]
#[unstable(feature = "ip", issue = "27709")]
#[must_use]
#[inline]
Expand Down Expand Up @@ -1729,7 +1729,7 @@ impl Ipv6Addr {
/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_unicast_global(), false);
/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_unicast_global(), true);
/// ```
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
#[rustc_const_unstable(feature = "ip", issue = "27709")]
#[unstable(feature = "ip", issue = "27709")]
#[must_use]
#[inline]
Expand Down Expand Up @@ -1758,7 +1758,7 @@ impl Ipv6Addr {
/// );
/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).multicast_scope(), None);
/// ```
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
#[rustc_const_unstable(feature = "ip", issue = "27709")]
#[unstable(feature = "ip", issue = "27709")]
#[must_use]
#[inline]
Expand Down Expand Up @@ -1818,7 +1818,7 @@ impl Ipv6Addr {
///
/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_ipv4_mapped(), false);
/// ```
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
#[rustc_const_unstable(feature = "ip", issue = "27709")]
#[unstable(feature = "ip", issue = "27709")]
#[must_use]
#[inline]
Expand Down

0 comments on commit 48bc761

Please sign in to comment.