Skip to content

Commit 08a7fa6

Browse files
committed
update stable-since version for const_int_conversion
1 parent 54b7d21 commit 08a7fa6

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/libcore/num/mod.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,7 @@ let bytes = ", $swap_op, stringify!($SelfT), ".to_be_bytes();
21542154
assert_eq!(bytes, ", $be_bytes, ");
21552155
```"),
21562156
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
2157-
#[rustc_const_stable(feature = "const_int_conversion", since = "1.43.0")]
2157+
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
21582158
#[inline]
21592159
pub const fn to_be_bytes(self) -> [u8; mem::size_of::<Self>()] {
21602160
self.to_be().to_ne_bytes()
@@ -2174,7 +2174,7 @@ let bytes = ", $swap_op, stringify!($SelfT), ".to_le_bytes();
21742174
assert_eq!(bytes, ", $le_bytes, ");
21752175
```"),
21762176
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
2177-
#[rustc_const_stable(feature = "const_int_conversion", since = "1.43.0")]
2177+
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
21782178
#[inline]
21792179
pub const fn to_le_bytes(self) -> [u8; mem::size_of::<Self>()] {
21802180
self.to_le().to_ne_bytes()
@@ -2209,7 +2209,7 @@ assert_eq!(
22092209
);
22102210
```"),
22112211
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
2212-
#[rustc_const_stable(feature = "const_int_conversion", since = "1.43.0")]
2212+
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
22132213
// SAFETY: const sound because integers are plain old datatypes so we can always
22142214
// transmute them to arrays of bytes
22152215
#[allow_internal_unstable(const_fn_union)]
@@ -2251,7 +2251,7 @@ fn read_be_", stringify!($SelfT), "(input: &mut &[u8]) -> ", stringify!($SelfT),
22512251
}
22522252
```"),
22532253
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
2254-
#[rustc_const_stable(feature = "const_int_conversion", since = "1.43.0")]
2254+
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
22552255
#[inline]
22562256
pub const fn from_be_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
22572257
Self::from_be(Self::from_ne_bytes(bytes))
@@ -2284,7 +2284,7 @@ fn read_le_", stringify!($SelfT), "(input: &mut &[u8]) -> ", stringify!($SelfT),
22842284
}
22852285
```"),
22862286
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
2287-
#[rustc_const_stable(feature = "const_int_conversion", since = "1.43.0")]
2287+
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
22882288
#[inline]
22892289
pub const fn from_le_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
22902290
Self::from_le(Self::from_ne_bytes(bytes))
@@ -2327,7 +2327,7 @@ fn read_ne_", stringify!($SelfT), "(input: &mut &[u8]) -> ", stringify!($SelfT),
23272327
}
23282328
```"),
23292329
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
2330-
#[rustc_const_stable(feature = "const_int_conversion", since = "1.43.0")]
2330+
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
23312331
// SAFETY: const sound because integers are plain old datatypes so we can always
23322332
// transmute to them
23332333
#[allow_internal_unstable(const_fn_union)]
@@ -4115,7 +4115,7 @@ let bytes = ", $swap_op, stringify!($SelfT), ".to_be_bytes();
41154115
assert_eq!(bytes, ", $be_bytes, ");
41164116
```"),
41174117
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
4118-
#[rustc_const_stable(feature = "const_int_conversion", since = "1.43.0")]
4118+
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
41194119
#[inline]
41204120
pub const fn to_be_bytes(self) -> [u8; mem::size_of::<Self>()] {
41214121
self.to_be().to_ne_bytes()
@@ -4135,7 +4135,7 @@ let bytes = ", $swap_op, stringify!($SelfT), ".to_le_bytes();
41354135
assert_eq!(bytes, ", $le_bytes, ");
41364136
```"),
41374137
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
4138-
#[rustc_const_stable(feature = "const_int_conversion", since = "1.43.0")]
4138+
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
41394139
#[inline]
41404140
pub const fn to_le_bytes(self) -> [u8; mem::size_of::<Self>()] {
41414141
self.to_le().to_ne_bytes()
@@ -4170,7 +4170,7 @@ assert_eq!(
41704170
);
41714171
```"),
41724172
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
4173-
#[rustc_const_stable(feature = "const_int_conversion", since = "1.43.0")]
4173+
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
41744174
// SAFETY: const sound because integers are plain old datatypes so we can always
41754175
// transmute them to arrays of bytes
41764176
#[allow_internal_unstable(const_fn_union)]
@@ -4212,7 +4212,7 @@ fn read_be_", stringify!($SelfT), "(input: &mut &[u8]) -> ", stringify!($SelfT),
42124212
}
42134213
```"),
42144214
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
4215-
#[rustc_const_stable(feature = "const_int_conversion", since = "1.43.0")]
4215+
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
42164216
#[inline]
42174217
pub const fn from_be_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
42184218
Self::from_be(Self::from_ne_bytes(bytes))
@@ -4245,7 +4245,7 @@ fn read_le_", stringify!($SelfT), "(input: &mut &[u8]) -> ", stringify!($SelfT),
42454245
}
42464246
```"),
42474247
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
4248-
#[rustc_const_stable(feature = "const_int_conversion", since = "1.43.0")]
4248+
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
42494249
#[inline]
42504250
pub const fn from_le_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
42514251
Self::from_le(Self::from_ne_bytes(bytes))
@@ -4288,7 +4288,7 @@ fn read_ne_", stringify!($SelfT), "(input: &mut &[u8]) -> ", stringify!($SelfT),
42884288
}
42894289
```"),
42904290
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
4291-
#[rustc_const_stable(feature = "const_int_conversion", since = "1.43.0")]
4291+
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
42924292
// SAFETY: const sound because integers are plain old datatypes so we can always
42934293
// transmute to them
42944294
#[allow_internal_unstable(const_fn_union)]

0 commit comments

Comments
 (0)