Rollup merge of #131616 - RalfJung:const_ip, r=tgross35 · qinheping/verify-rust-std@8d35aa9 (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]
`
`@@ -794,7 +792,6 @@ impl Ipv4Addr {
`
794
792
`///
`
795
793
`/// // For a complete overview see the IANA IPv4 Special-Purpose Address Registry.
`
796
794
```` /// ```
`797`
``
`-
#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]
`
`798`
`795`
`#[unstable(feature = "ip", issue = "27709")]
`
`799`
`796`
`#[must_use]
`
`800`
`797`
`#[inline]
`
`@@ -831,7 +828,6 @@ impl Ipv4Addr {
`
`831`
`828`
`/// assert_eq!(Ipv4Addr::new(100, 127, 255, 255).is_shared(), true);
`
`832`
`829`
`/// assert_eq!(Ipv4Addr::new(100, 128, 0, 0).is_shared(), false);
`
`833`
`830`
```` /// ```
834
``
`-
#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]
`
835
831
`#[unstable(feature = "ip", issue = "27709")]
`
836
832
`#[must_use]
`
837
833
`#[inline]
`
`@@ -859,7 +855,6 @@ impl Ipv4Addr {
`
859
855
`/// assert_eq!(Ipv4Addr::new(198, 19, 255, 255).is_benchmarking(), true);
`
860
856
`/// assert_eq!(Ipv4Addr::new(198, 20, 0, 0).is_benchmarking(), false);
`
861
857
```` /// ```
`862`
``
`-
#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]
`
`863`
`858`
`#[unstable(feature = "ip", issue = "27709")]
`
`864`
`859`
`#[must_use]
`
`865`
`860`
`#[inline]
`
`@@ -896,7 +891,6 @@ impl Ipv4Addr {
`
`896`
`891`
`/// // The broadcast address is not considered as reserved for future use by this implementation
`
`897`
`892`
`/// assert_eq!(Ipv4Addr::new(255, 255, 255, 255).is_reserved(), false);
`
`898`
`893`
```` /// ```
899
``
`-
#[rustc_const_unstable(feature = "const_ipv4", issue = "76205")]
`
900
894
`#[unstable(feature = "ip", issue = "27709")]
`
901
895
`#[must_use]
`
902
896
`#[inline]
`
`@@ -1556,7 +1550,6 @@ impl Ipv6Addr {
`
1556
1550
`///
`
1557
1551
`/// // For a complete overview see the IANA IPv6 Special-Purpose Address Registry.
`
1558
1552
```` /// ```
`1559`
``
`-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
`
`1560`
`1553`
`#[unstable(feature = "ip", issue = "27709")]
`
`1561`
`1554`
`#[must_use]
`
`1562`
`1555`
`#[inline]
`
`@@ -1608,7 +1601,6 @@ impl Ipv6Addr {
`
`1608`
`1601`
`/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_unique_local(), false);
`
`1609`
`1602`
`/// assert_eq!(Ipv6Addr::new(0xfc02, 0, 0, 0, 0, 0, 0, 0).is_unique_local(), true);
`
`1610`
`1603`
```` /// ```
1611
``
`-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
`
1612
1604
`#[unstable(feature = "ip", issue = "27709")]
`
1613
1605
`#[must_use]
`
1614
1606
`#[inline]
`
`@@ -1637,7 +1629,6 @@ impl Ipv6Addr {
`
1637
1629
`/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_unicast(), true);
`
1638
1630
`/// assert_eq!(Ipv6Addr::new(0xff00, 0, 0, 0, 0, 0, 0, 0).is_unicast(), false);
`
1639
1631
```` /// ```
`1640`
``
`-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
`
`1641`
`1632`
`#[unstable(feature = "ip", issue = "27709")]
`
`1642`
`1633`
`#[must_use]
`
`1643`
`1634`
`#[inline]
`
`@@ -1689,7 +1680,6 @@ impl Ipv6Addr {
`
`1689`
`1680`
`/// assert_eq!(Ipv6Addr::new(0xfe80, 0, 0, 1, 0, 0, 0, 0).is_unicast_link_local(), true);
`
`1690`
`1681`
`/// assert_eq!(Ipv6Addr::new(0xfe81, 0, 0, 0, 0, 0, 0, 0).is_unicast_link_local(), true);
`
`1691`
`1682`
```` /// ```
1692
``
`-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
`
1693
1683
`#[unstable(feature = "ip", issue = "27709")]
`
1694
1684
`#[must_use]
`
1695
1685
`#[inline]
`
`@@ -1714,7 +1704,6 @@ impl Ipv6Addr {
`
1714
1704
`/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_documentation(), false);
`
1715
1705
`/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_documentation(), true);
`
1716
1706
```` /// ```
`1717`
``
`-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
`
`1718`
`1707`
`#[unstable(feature = "ip", issue = "27709")]
`
`1719`
`1708`
`#[must_use]
`
`1720`
`1709`
`#[inline]
`
`@@ -1775,7 +1764,6 @@ impl Ipv6Addr {
`
`1775`
`1764`
`/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_unicast_global(), false);
`
`1776`
`1765`
`/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).is_unicast_global(), true);
`
`1777`
`1766`
```` /// ```
1778
``
`-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
`
1779
1767
`#[unstable(feature = "ip", issue = "27709")]
`
1780
1768
`#[must_use]
`
1781
1769
`#[inline]
`
`@@ -1804,7 +1792,6 @@ impl Ipv6Addr {
`
1804
1792
`/// );
`
1805
1793
`/// assert_eq!(Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc00a, 0x2ff).multicast_scope(), None);
`
1806
1794
```` /// ```
`1807`
``
`-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
`
`1808`
`1795`
`#[unstable(feature = "ip", issue = "27709")]
`
`1809`
`1796`
`#[must_use]
`
`1810`
`1797`
`#[inline]
`
`@@ -1864,7 +1851,6 @@ impl Ipv6Addr {
`
`1864`
`1851`
`///
`
`1865`
`1852`
`/// assert_eq!(Ipv6Addr::new(0x2001, 0xdb8, 0, 0, 0, 0, 0, 0).is_ipv4_mapped(), false);
`
`1866`
`1853`
```` /// ```
1867
``
`-
#[rustc_const_unstable(feature = "const_ipv6", issue = "76205")]
`
1868
1854
`#[unstable(feature = "ip", issue = "27709")]
`
1869
1855
`#[must_use]
`
1870
1856
`#[inline]
`