@@ -1996,12 +1996,10 @@ $EndFeature, "
1996
1996
/// # Examples
1997
1997
///
1998
1998
/// ```
1999
- /// #![feature(int_to_from_bytes)]
2000
- ///
2001
1999
/// let bytes = i32::min_value().to_be().to_bytes();
2002
2000
/// assert_eq!(bytes, [0x80, 0, 0, 0]);
2003
2001
/// ```
2004
- #[ unstable ( feature = "int_to_from_bytes" , issue = "49792 " ) ]
2002
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.29.0 " ) ]
2005
2003
#[ inline]
2006
2004
pub fn to_bytes( self ) -> [ u8 ; mem:: size_of:: <Self >( ) ] {
2007
2005
unsafe { mem:: transmute( self ) }
@@ -2018,12 +2016,10 @@ $EndFeature, "
2018
2016
/// # Examples
2019
2017
///
2020
2018
/// ```
2021
- /// #![feature(int_to_from_bytes)]
2022
- ///
2023
2019
/// let int = i32::from_be(i32::from_bytes([0x80, 0, 0, 0]));
2024
2020
/// assert_eq!(int, i32::min_value());
2025
2021
/// ```
2026
- #[ unstable ( feature = "int_to_from_bytes" , issue = "49792 " ) ]
2022
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.29.0 " ) ]
2027
2023
#[ inline]
2028
2024
pub fn from_bytes( bytes: [ u8 ; mem:: size_of:: <Self >( ) ] ) -> Self {
2029
2025
unsafe { mem:: transmute( bytes) }
@@ -3702,12 +3698,10 @@ $EndFeature, "
3702
3698
/// # Examples
3703
3699
///
3704
3700
/// ```
3705
- /// #![feature(int_to_from_bytes)]
3706
- ///
3707
3701
/// let bytes = 0x1234_5678_u32.to_be().to_bytes();
3708
3702
/// assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78]);
3709
3703
/// ```
3710
- #[ unstable ( feature = "int_to_from_bytes" , issue = "49792 " ) ]
3704
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.29.0 " ) ]
3711
3705
#[ inline]
3712
3706
pub fn to_bytes( self ) -> [ u8 ; mem:: size_of:: <Self >( ) ] {
3713
3707
unsafe { mem:: transmute( self ) }
@@ -3724,12 +3718,10 @@ $EndFeature, "
3724
3718
/// # Examples
3725
3719
///
3726
3720
/// ```
3727
- /// #![feature(int_to_from_bytes)]
3728
- ///
3729
3721
/// let int = u32::from_be(u32::from_bytes([0x12, 0x34, 0x56, 0x78]));
3730
3722
/// assert_eq!(int, 0x1234_5678_u32);
3731
3723
/// ```
3732
- #[ unstable ( feature = "int_to_from_bytes" , issue = "49792 " ) ]
3724
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.29.0 " ) ]
3733
3725
#[ inline]
3734
3726
pub fn from_bytes( bytes: [ u8 ; mem:: size_of:: <Self >( ) ] ) -> Self {
3735
3727
unsafe { mem:: transmute( bytes) }
0 commit comments