Skip to content

Commit 0ddfae5

Browse files
committed
Change tracking issue from rust-lang#49792 to rust-lang#51919
The old issue has already been in FCP, a new issue was opened for the new API.
1 parent a04b2cd commit 0ddfae5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/libcore/num/mod.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,7 @@ $EndFeature, "
19031903
/// let bytes = 0x12345678i32.to_be_bytes();
19041904
/// assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78]);
19051905
/// ```
1906-
#[unstable(feature = "int_to_from_bytes", issue = "49792")]
1906+
#[unstable(feature = "int_to_from_bytes", issue = "52963")]
19071907
#[inline]
19081908
pub fn to_be_bytes(self) -> [u8; mem::size_of::<Self>()] {
19091909
self.to_be().to_ne_bytes()
@@ -1920,7 +1920,7 @@ $EndFeature, "
19201920
/// let bytes = 0x12345678i32.to_le_bytes();
19211921
/// assert_eq!(bytes, [0x78, 0x56, 0x34, 0x12]);
19221922
/// ```
1923-
#[unstable(feature = "int_to_from_bytes", issue = "49792")]
1923+
#[unstable(feature = "int_to_from_bytes", issue = "52963")]
19241924
#[inline]
19251925
pub fn to_le_bytes(self) -> [u8; mem::size_of::<Self>()] {
19261926
self.to_le().to_ne_bytes()
@@ -1944,7 +1944,7 @@ $EndFeature, "
19441944
/// let bytes = i32::min_value().to_be().to_ne_bytes();
19451945
/// assert_eq!(bytes, [0x80, 0, 0, 0]);
19461946
/// ```
1947-
#[unstable(feature = "int_to_from_bytes", issue = "49792")]
1947+
#[unstable(feature = "int_to_from_bytes", issue = "52963")]
19481948
#[inline]
19491949
pub fn to_ne_bytes(self) -> [u8; mem::size_of::<Self>()] {
19501950
unsafe { mem::transmute(self) }
@@ -1961,7 +1961,7 @@ $EndFeature, "
19611961
/// let int = i32::from_be_bytes([0x12, 0x34, 0x56, 0x78]);
19621962
/// assert_eq!(int, 0x12_34_56_78);
19631963
/// ```
1964-
#[unstable(feature = "int_to_from_bytes", issue = "49792")]
1964+
#[unstable(feature = "int_to_from_bytes", issue = "52963")]
19651965
#[inline]
19661966
pub fn from_be_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
19671967
Self::from_be(Self::from_ne_bytes(bytes))
@@ -1978,7 +1978,7 @@ $EndFeature, "
19781978
/// let int = i32::from_le_bytes([0x12, 0x34, 0x56, 0x78]);
19791979
/// assert_eq!(int, 0x78_56_34_12);
19801980
/// ```
1981-
#[unstable(feature = "int_to_from_bytes", issue = "49792")]
1981+
#[unstable(feature = "int_to_from_bytes", issue = "52963")]
19821982
#[inline]
19831983
pub fn from_le_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
19841984
Self::from_le(Self::from_ne_bytes(bytes))
@@ -2002,7 +2002,7 @@ $EndFeature, "
20022002
/// let int = i32::from_be(i32::from_ne_bytes([0x80, 0, 0, 0]));
20032003
/// assert_eq!(int, i32::min_value());
20042004
/// ```
2005-
#[unstable(feature = "int_to_from_bytes", issue = "49792")]
2005+
#[unstable(feature = "int_to_from_bytes", issue = "52963")]
20062006
#[inline]
20072007
pub fn from_ne_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
20082008
unsafe { mem::transmute(bytes) }
@@ -3589,7 +3589,7 @@ $EndFeature, "
35893589
/// let bytes = 0x1234_5678_u32.to_be().to_bytes();
35903590
/// assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78]);
35913591
/// ```
3592-
#[unstable(feature = "int_to_from_bytes", issue = "49792")]
3592+
#[unstable(feature = "int_to_from_bytes", issue = "52963")]
35933593
#[inline]
35943594
pub fn to_bytes(self) -> [u8; mem::size_of::<Self>()] {
35953595
unsafe { mem::transmute(self) }
@@ -3611,7 +3611,7 @@ $EndFeature, "
36113611
/// let int = u32::from_be(u32::from_bytes([0x12, 0x34, 0x56, 0x78]));
36123612
/// assert_eq!(int, 0x1234_5678_u32);
36133613
/// ```
3614-
#[unstable(feature = "int_to_from_bytes", issue = "49792")]
3614+
#[unstable(feature = "int_to_from_bytes", issue = "52963")]
36153615
#[inline]
36163616
pub fn from_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
36173617
unsafe { mem::transmute(bytes) }

0 commit comments

Comments
 (0)