@@ -627,13 +627,13 @@ impl Ipv4Addr {
627
627
/// # Examples
628
628
///
629
629
/// ```
630
- /// #![feature(ip_from)]
631
630
/// use std::net::Ipv4Addr;
632
631
///
633
632
/// let addr = Ipv4Addr::from_octets([13u8, 12u8, 11u8, 10u8]);
634
633
/// assert_eq!(Ipv4Addr::new(13, 12, 11, 10), addr);
635
634
/// ```
636
- #[ unstable( feature = "ip_from" , issue = "131360" ) ]
635
+ #[ stable( feature = "ip_from" , since = "CURRENT_RUSTC_VERSION" ) ]
636
+ #[ rustc_const_stable( feature = "ip_from" , since = "CURRENT_RUSTC_VERSION" ) ]
637
637
#[ must_use]
638
638
#[ inline]
639
639
pub const fn from_octets ( octets : [ u8 ; 4 ] ) -> Ipv4Addr {
@@ -1460,7 +1460,6 @@ impl Ipv6Addr {
1460
1460
/// # Examples
1461
1461
///
1462
1462
/// ```
1463
- /// #![feature(ip_from)]
1464
1463
/// use std::net::Ipv6Addr;
1465
1464
///
1466
1465
/// let addr = Ipv6Addr::from_segments([
@@ -1475,7 +1474,8 @@ impl Ipv6Addr {
1475
1474
/// addr
1476
1475
/// );
1477
1476
/// ```
1478
- #[ unstable( feature = "ip_from" , issue = "131360" ) ]
1477
+ #[ stable( feature = "ip_from" , since = "CURRENT_RUSTC_VERSION" ) ]
1478
+ #[ rustc_const_stable( feature = "ip_from" , since = "CURRENT_RUSTC_VERSION" ) ]
1479
1479
#[ must_use]
1480
1480
#[ inline]
1481
1481
pub const fn from_segments ( segments : [ u16 ; 8 ] ) -> Ipv6Addr {
@@ -2025,7 +2025,6 @@ impl Ipv6Addr {
2025
2025
/// # Examples
2026
2026
///
2027
2027
/// ```
2028
- /// #![feature(ip_from)]
2029
2028
/// use std::net::Ipv6Addr;
2030
2029
///
2031
2030
/// let addr = Ipv6Addr::from_octets([
@@ -2040,7 +2039,8 @@ impl Ipv6Addr {
2040
2039
/// addr
2041
2040
/// );
2042
2041
/// ```
2043
- #[ unstable( feature = "ip_from" , issue = "131360" ) ]
2042
+ #[ stable( feature = "ip_from" , since = "CURRENT_RUSTC_VERSION" ) ]
2043
+ #[ rustc_const_stable( feature = "ip_from" , since = "CURRENT_RUSTC_VERSION" ) ]
2044
2044
#[ must_use]
2045
2045
#[ inline]
2046
2046
pub const fn from_octets ( octets : [ u8 ; 16 ] ) -> Ipv6Addr {
0 commit comments