@@ -626,13 +626,13 @@ impl Ipv4Addr {
626
626
/// # Examples
627
627
///
628
628
/// ```
629
- /// #![feature(ip_from)]
630
629
/// use std::net::Ipv4Addr;
631
630
///
632
631
/// let addr = Ipv4Addr::from_octets([13u8, 12u8, 11u8, 10u8]);
633
632
/// assert_eq!(Ipv4Addr::new(13, 12, 11, 10), addr);
634
633
/// ```
635
- #[ unstable( feature = "ip_from" , issue = "131360" ) ]
634
+ #[ stable( feature = "ip_from" , since = "CURRENT_RUSTC_VERSION" ) ]
635
+ #[ rustc_const_stable( feature = "ip_from" , since = "CURRENT_RUSTC_VERSION" ) ]
636
636
#[ must_use]
637
637
#[ inline]
638
638
pub const fn from_octets ( octets : [ u8 ; 4 ] ) -> Ipv4Addr {
@@ -1464,7 +1464,6 @@ impl Ipv6Addr {
1464
1464
/// # Examples
1465
1465
///
1466
1466
/// ```
1467
- /// #![feature(ip_from)]
1468
1467
/// use std::net::Ipv6Addr;
1469
1468
///
1470
1469
/// let addr = Ipv6Addr::from_segments([
@@ -1479,7 +1478,8 @@ impl Ipv6Addr {
1479
1478
/// addr
1480
1479
/// );
1481
1480
/// ```
1482
- #[ unstable( feature = "ip_from" , issue = "131360" ) ]
1481
+ #[ stable( feature = "ip_from" , since = "CURRENT_RUSTC_VERSION" ) ]
1482
+ #[ rustc_const_stable( feature = "ip_from" , since = "CURRENT_RUSTC_VERSION" ) ]
1483
1483
#[ must_use]
1484
1484
#[ inline]
1485
1485
pub const fn from_segments ( segments : [ u16 ; 8 ] ) -> Ipv6Addr {
@@ -2029,7 +2029,6 @@ impl Ipv6Addr {
2029
2029
/// # Examples
2030
2030
///
2031
2031
/// ```
2032
- /// #![feature(ip_from)]
2033
2032
/// use std::net::Ipv6Addr;
2034
2033
///
2035
2034
/// let addr = Ipv6Addr::from_octets([
@@ -2044,7 +2043,8 @@ impl Ipv6Addr {
2044
2043
/// addr
2045
2044
/// );
2046
2045
/// ```
2047
- #[ unstable( feature = "ip_from" , issue = "131360" ) ]
2046
+ #[ stable( feature = "ip_from" , since = "CURRENT_RUSTC_VERSION" ) ]
2047
+ #[ rustc_const_stable( feature = "ip_from" , since = "CURRENT_RUSTC_VERSION" ) ]
2048
2048
#[ must_use]
2049
2049
#[ inline]
2050
2050
pub const fn from_octets ( octets : [ u8 ; 16 ] ) -> Ipv6Addr {
0 commit comments