Skip to content

Commit 48bc761

Browse files
committed
merge const_ipv4 / const_ipv6 feature gate into 'ip' feature gate
1 parent fb20e4d commit 48bc761

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

library/core/src/net/ip_addr.rs

+14-14
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ impl IpAddr {
295295
/// assert_eq!(IpAddr::V4(Ipv4Addr::new(80, 9, 12, 3)).is_global(), true);
296296
/// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0x1c9, 0, 0, 0xafc8, 0, 0x1)).is_global(), true);
297297
/// ```
298-
#[rustc_const_unstable(feature = "const_ip", issue = "76205")]
298+
#[rustc_const_unstable(feature = "ip", issue = "27709")]
299299
#[unstable(feature = "ip", issue = "27709")]
300300
#[must_use]
301301
#[inline]
@@ -348,7 +348,7 @@ impl IpAddr {
348348
/// true
349349
/// );
350350
/// ```
351-
#[rustc_const_unstable(feature = "const_ip", issue = "76205")]
351+
#[rustc_const_unstable(feature = "ip", issue = "27709")]
352352
#[unstable(feature = "ip", issue = "27709")]
353353
#[must_use]
354354
#[inline]
@@ -776,7 +776,7 @@ impl Ipv4Addr {
776776
///
777777
/// // For a complete overview see the IANA IPv4 Special-Purpose Address Registry.
778778
/// ```
779-
#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]
779+
#[rustc_const_unstable(feature = "ip", issue = "27709")]
780780
#[unstable(feature = "ip", issue = "27709")]
781781
#[must_use]
782782
#[inline]
@@ -813,7 +813,7 @@ impl Ipv4Addr {
813813
/// assert_eq!(Ipv4Addr::new(100, 127, 255, 255).is_shared(), true);
814814
/// assert_eq!(Ipv4Addr::new(100, 128, 0, 0).is_shared(), false);
815815
/// ```
816-
#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]
816+
#[rustc_const_unstable(feature = "ip", issue = "27709")]
817817
#[unstable(feature = "ip", issue = "27709")]
818818
#[must_use]
819819
#[inline]
@@ -841,7 +841,7 @@ impl Ipv4Addr {
841841
/// assert_eq!(Ipv4Addr::new(198, 19, 255, 255).is_benchmarking(), true);
842842
/// assert_eq!(Ipv4Addr::new(198, 20, 0, 0).is_benchmarking(), false);
843843
/// ```
844-
#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]
844+
#[rustc_const_unstable(feature = "ip", issue = "27709")]
845845
#[unstable(feature = "ip", issue = "27709")]
846846
#[must_use]
847847
#[inline]
@@ -878,7 +878,7 @@ impl Ipv4Addr {
878878
/// // The broadcast address is not considered as reserved for future use by this implementation
879879
/// assert_eq!(Ipv4Addr::new(255, 255, 255, 255).is_reserved(), false);
880880
/// ```
881-
#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]
881+
#[rustc_const_unstable(feature = "ip", issue = "27709")]
882882
#[unstable(feature = "ip", issue = "27709")]
883883
#[must_use]
884884
#[inline]
@@ -1510,7 +1510,7 @@ impl Ipv6Addr {
15101510
///
15111511
/// // For a complete overview see the IANA IPv6 Special-Purpose Address Registry.
15121512
/// ```
1513-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
1513+
#[rustc_const_unstable(feature = "ip", issue = "27709")]
15141514
#[unstable(feature = "ip", issue = "27709")]
15151515
#[must_use]
15161516
#[inline]
@@ -1562,7 +1562,7 @@ impl Ipv6Addr {
15621562
/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_unique_local(), false);
15631563
/// assert_eq!(Ipv6Addr::new(0xfc02, 0, 0, 0, 0, 0, 0, 0).is_unique_local(), true);
15641564
/// ```
1565-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
1565+
#[rustc_const_unstable(feature = "ip", issue = "27709")]
15661566
#[unstable(feature = "ip", issue = "27709")]
15671567
#[must_use]
15681568
#[inline]
@@ -1591,7 +1591,7 @@ impl Ipv6Addr {
15911591
/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_unicast(), true);
15921592
/// assert_eq!(Ipv6Addr::new(0xff00, 0, 0, 0, 0, 0, 0, 0).is_unicast(), false);
15931593
/// ```
1594-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
1594+
#[rustc_const_unstable(feature = "ip", issue = "27709")]
15951595
#[unstable(feature = "ip", issue = "27709")]
15961596
#[must_use]
15971597
#[inline]
@@ -1643,7 +1643,7 @@ impl Ipv6Addr {
16431643
/// assert_eq!(Ipv6Addr::new(0xfe80, 0, 0, 1, 0, 0, 0, 0).is_unicast_link_local(), true);
16441644
/// assert_eq!(Ipv6Addr::new(0xfe81, 0, 0, 0, 0, 0, 0, 0).is_unicast_link_local(), true);
16451645
/// ```
1646-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
1646+
#[rustc_const_unstable(feature = "ip", issue = "27709")]
16471647
#[unstable(feature = "ip", issue = "27709")]
16481648
#[must_use]
16491649
#[inline]
@@ -1668,7 +1668,7 @@ impl Ipv6Addr {
16681668
/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_documentation(), false);
16691669
/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_documentation(), true);
16701670
/// ```
1671-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
1671+
#[rustc_const_unstable(feature = "ip", issue = "27709")]
16721672
#[unstable(feature = "ip", issue = "27709")]
16731673
#[must_use]
16741674
#[inline]
@@ -1729,7 +1729,7 @@ impl Ipv6Addr {
17291729
/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_unicast_global(), false);
17301730
/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_unicast_global(), true);
17311731
/// ```
1732-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
1732+
#[rustc_const_unstable(feature = "ip", issue = "27709")]
17331733
#[unstable(feature = "ip", issue = "27709")]
17341734
#[must_use]
17351735
#[inline]
@@ -1758,7 +1758,7 @@ impl Ipv6Addr {
17581758
/// );
17591759
/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).multicast_scope(), None);
17601760
/// ```
1761-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
1761+
#[rustc_const_unstable(feature = "ip", issue = "27709")]
17621762
#[unstable(feature = "ip", issue = "27709")]
17631763
#[must_use]
17641764
#[inline]
@@ -1818,7 +1818,7 @@ impl Ipv6Addr {
18181818
///
18191819
/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_ipv4_mapped(), false);
18201820
/// ```
1821-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
1821+
#[rustc_const_unstable(feature = "ip", issue = "27709")]
18221822
#[unstable(feature = "ip", issue = "27709")]
18231823
#[must_use]
18241824
#[inline]

0 commit comments

Comments
 (0)