merge const_ipv4 / const_ipv6 feature gate into 'ip' feature gate · qinheping/verify-rust-std@ddfd2ea (original) (raw)

`@@ -295,7 +295,6 @@ impl IpAddr {

`

295

295

`/// assert_eq!(IpAddr::V4(Ipv4Addr::new(80, 9, 12, 3)).is_global(), true);

`

296

296

`/// assert_eq!(IpAddr::V6(Ipv6Addr::new(0, 0, 0x1c9, 0, 0, 0xafc8, 0, 0x1)).is_global(), true);

`

297

297

```` /// ```


`298`

``

`-

#[rustc_const_unstable(feature = "const_ip", issue = "76205")]

`

`299`

`298`

`#[unstable(feature = "ip", issue = "27709")]

`

`300`

`299`

`#[must_use]

`

`301`

`300`

`#[inline]

`

`@@ -348,7 +347,6 @@ impl IpAddr {

`

`348`

`347`

`/// true

`

`349`

`348`

`/// );

`

`350`

`349`

```` /// ```

351

``

`-

#[rustc_const_unstable(feature = "const_ip", issue = "76205")]

`

352

350

`#[unstable(feature = "ip", issue = "27709")]

`

353

351

`#[must_use]

`

354

352

`#[inline]

`

`@@ -776,7 +774,6 @@ impl Ipv4Addr {

`

776

774

`///

`

777

775

`/// // For a complete overview see the IANA IPv4 Special-Purpose Address Registry.

`

778

776

```` /// ```


`779`

``

`-

#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]

`

`780`

`777`

`#[unstable(feature = "ip", issue = "27709")]

`

`781`

`778`

`#[must_use]

`

`782`

`779`

`#[inline]

`

`@@ -813,7 +810,6 @@ impl Ipv4Addr {

`

`813`

`810`

`/// assert_eq!(Ipv4Addr::new(100, 127, 255, 255).is_shared(), true);

`

`814`

`811`

`/// assert_eq!(Ipv4Addr::new(100, 128, 0, 0).is_shared(), false);

`

`815`

`812`

```` /// ```

816

``

`-

#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]

`

817

813

`#[unstable(feature = "ip", issue = "27709")]

`

818

814

`#[must_use]

`

819

815

`#[inline]

`

`@@ -841,7 +837,6 @@ impl Ipv4Addr {

`

841

837

`/// assert_eq!(Ipv4Addr::new(198, 19, 255, 255).is_benchmarking(), true);

`

842

838

`/// assert_eq!(Ipv4Addr::new(198, 20, 0, 0).is_benchmarking(), false);

`

843

839

```` /// ```


`844`

``

`-

#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]

`

`845`

`840`

`#[unstable(feature = "ip", issue = "27709")]

`

`846`

`841`

`#[must_use]

`

`847`

`842`

`#[inline]

`

`@@ -878,7 +873,6 @@ impl Ipv4Addr {

`

`878`

`873`

`/// // The broadcast address is not considered as reserved for future use by this implementation

`

`879`

`874`

`/// assert_eq!(Ipv4Addr::new(255, 255, 255, 255).is_reserved(), false);

`

`880`

`875`

```` /// ```

881

``

`-

#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]

`

882

876

`#[unstable(feature = "ip", issue = "27709")]

`

883

877

`#[must_use]

`

884

878

`#[inline]

`

`@@ -1510,7 +1504,6 @@ impl Ipv6Addr {

`

1510

1504

`///

`

1511

1505

`/// // For a complete overview see the IANA IPv6 Special-Purpose Address Registry.

`

1512

1506

```` /// ```


`1513`

``

`-

#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]

`

`1514`

`1507`

`#[unstable(feature = "ip", issue = "27709")]

`

`1515`

`1508`

`#[must_use]

`

`1516`

`1509`

`#[inline]

`

`@@ -1562,7 +1555,6 @@ impl Ipv6Addr {

`

`1562`

`1555`

`/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_unique_local(), false);

`

`1563`

`1556`

`/// assert_eq!(Ipv6Addr::new(0xfc02, 0, 0, 0, 0, 0, 0, 0).is_unique_local(), true);

`

`1564`

`1557`

```` /// ```

1565

``

`-

#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]

`

1566

1558

`#[unstable(feature = "ip", issue = "27709")]

`

1567

1559

`#[must_use]

`

1568

1560

`#[inline]

`

`@@ -1591,7 +1583,6 @@ impl Ipv6Addr {

`

1591

1583

`/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_unicast(), true);

`

1592

1584

`/// assert_eq!(Ipv6Addr::new(0xff00, 0, 0, 0, 0, 0, 0, 0).is_unicast(), false);

`

1593

1585

```` /// ```


`1594`

``

`-

#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]

`

`1595`

`1586`

`#[unstable(feature = "ip", issue = "27709")]

`

`1596`

`1587`

`#[must_use]

`

`1597`

`1588`

`#[inline]

`

`@@ -1643,7 +1634,6 @@ impl Ipv6Addr {

`

`1643`

`1634`

`/// assert_eq!(Ipv6Addr::new(0xfe80, 0, 0, 1, 0, 0, 0, 0).is_unicast_link_local(), true);

`

`1644`

`1635`

`/// assert_eq!(Ipv6Addr::new(0xfe81, 0, 0, 0, 0, 0, 0, 0).is_unicast_link_local(), true);

`

`1645`

`1636`

```` /// ```

1646

``

`-

#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]

`

1647

1637

`#[unstable(feature = "ip", issue = "27709")]

`

1648

1638

`#[must_use]

`

1649

1639

`#[inline]

`

`@@ -1668,7 +1658,6 @@ impl Ipv6Addr {

`

1668

1658

`/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_documentation(), false);

`

1669

1659

`/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_documentation(), true);

`

1670

1660

```` /// ```


`1671`

``

`-

#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]

`

`1672`

`1661`

`#[unstable(feature = "ip", issue = "27709")]

`

`1673`

`1662`

`#[must_use]

`

`1674`

`1663`

`#[inline]

`

`@@ -1729,7 +1718,6 @@ impl Ipv6Addr {

`

`1729`

`1718`

`/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_unicast_global(), false);

`

`1730`

`1719`

`/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_unicast_global(), true);

`

`1731`

`1720`

```` /// ```

1732

``

`-

#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]

`

1733

1721

`#[unstable(feature = "ip", issue = "27709")]

`

1734

1722

`#[must_use]

`

1735

1723

`#[inline]

`

`@@ -1758,7 +1746,6 @@ impl Ipv6Addr {

`

1758

1746

`/// );

`

1759

1747

`/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).multicast_scope(), None);

`

1760

1748

```` /// ```


`1761`

``

`-

#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]

`

`1762`

`1749`

`#[unstable(feature = "ip", issue = "27709")]

`

`1763`

`1750`

`#[must_use]

`

`1764`

`1751`

`#[inline]

`

`@@ -1818,7 +1805,6 @@ impl Ipv6Addr {

`

`1818`

`1805`

`///

`

`1819`

`1806`

`/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_ipv4_mapped(), false);

`

`1820`

`1807`

```` /// ```

1821

``

`-

#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]

`

1822

1808

`#[unstable(feature = "ip", issue = "27709")]

`

1823

1809

`#[must_use]

`

1824

1810

`#[inline]

`