@@ -627,13 +627,13 @@ impl Ipv4Addr {
627627 /// # Examples
628628 ///
629629 /// ```
630- /// #![feature(ip_from)]
631630 /// use std::net::Ipv4Addr;
632631 ///
633632 /// let addr = Ipv4Addr::from_octets([13u8, 12u8, 11u8, 10u8]);
634633 /// assert_eq!(Ipv4Addr::new(13, 12, 11, 10), addr);
635634 /// ```
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" ) ]
637637 #[ must_use]
638638 #[ inline]
639639 pub const fn from_octets ( octets : [ u8 ; 4 ] ) -> Ipv4Addr {
@@ -1460,7 +1460,6 @@ impl Ipv6Addr {
14601460 /// # Examples
14611461 ///
14621462 /// ```
1463- /// #![feature(ip_from)]
14641463 /// use std::net::Ipv6Addr;
14651464 ///
14661465 /// let addr = Ipv6Addr::from_segments([
@@ -1475,7 +1474,8 @@ impl Ipv6Addr {
14751474 /// addr
14761475 /// );
14771476 /// ```
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" ) ]
14791479 #[ must_use]
14801480 #[ inline]
14811481 pub const fn from_segments ( segments : [ u16 ; 8 ] ) -> Ipv6Addr {
@@ -2025,7 +2025,6 @@ impl Ipv6Addr {
20252025 /// # Examples
20262026 ///
20272027 /// ```
2028- /// #![feature(ip_from)]
20292028 /// use std::net::Ipv6Addr;
20302029 ///
20312030 /// let addr = Ipv6Addr::from_octets([
@@ -2040,7 +2039,8 @@ impl Ipv6Addr {
20402039 /// addr
20412040 /// );
20422041 /// ```
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" ) ]
20442044 #[ must_use]
20452045 #[ inline]
20462046 pub const fn from_octets ( octets : [ u8 ; 16 ] ) -> Ipv6Addr {
0 commit comments