@@ -2195,7 +2195,7 @@ let bytes = ", $swap_op, stringify!($SelfT), ".to_be_bytes();
2195
2195
assert_eq!(bytes, " , $be_bytes, ");
2196
2196
```" ) ,
2197
2197
#[ stable( feature = "int_to_from_bytes" , since = "1.32.0" ) ]
2198
- #[ rustc_const_unstable ( feature = "const_int_conversion" , issue = "53718 " ) ]
2198
+ #[ rustc_const_stable ( feature = "const_int_conversion" , since = "1.43.0 " ) ]
2199
2199
#[ inline]
2200
2200
pub const fn to_be_bytes( self ) -> [ u8 ; mem:: size_of:: <Self >( ) ] {
2201
2201
self . to_be( ) . to_ne_bytes( )
@@ -2215,7 +2215,7 @@ let bytes = ", $swap_op, stringify!($SelfT), ".to_le_bytes();
2215
2215
assert_eq!(bytes, " , $le_bytes, ");
2216
2216
```" ) ,
2217
2217
#[ stable( feature = "int_to_from_bytes" , since = "1.32.0" ) ]
2218
- #[ rustc_const_unstable ( feature = "const_int_conversion" , issue = "53718 " ) ]
2218
+ #[ rustc_const_stable ( feature = "const_int_conversion" , since = "1.43.0 " ) ]
2219
2219
#[ inline]
2220
2220
pub const fn to_le_bytes( self ) -> [ u8 ; mem:: size_of:: <Self >( ) ] {
2221
2221
self . to_le( ) . to_ne_bytes( )
@@ -2250,7 +2250,8 @@ assert_eq!(
2250
2250
);
2251
2251
```" ) ,
2252
2252
#[ stable( feature = "int_to_from_bytes" , since = "1.32.0" ) ]
2253
- #[ rustc_const_unstable( feature = "const_int_conversion" , issue = "53718" ) ]
2253
+ #[ rustc_const_stable( feature = "const_int_conversion" , since = "1.43.0" ) ]
2254
+ #[ allow_internal_unstable( const_transmute) ]
2254
2255
#[ inline]
2255
2256
pub const fn to_ne_bytes( self ) -> [ u8 ; mem:: size_of:: <Self >( ) ] {
2256
2257
// SAFETY: integers are plain old datatypes so we can always transmute them to
@@ -2284,7 +2285,7 @@ fn read_be_", stringify!($SelfT), "(input: &mut &[u8]) -> ", stringify!($SelfT),
2284
2285
}
2285
2286
```" ) ,
2286
2287
#[ stable( feature = "int_to_from_bytes" , since = "1.32.0" ) ]
2287
- #[ rustc_const_unstable ( feature = "const_int_conversion" , issue = "53718 " ) ]
2288
+ #[ rustc_const_stable ( feature = "const_int_conversion" , since = "1.43.0 " ) ]
2288
2289
#[ inline]
2289
2290
pub const fn from_be_bytes( bytes: [ u8 ; mem:: size_of:: <Self >( ) ] ) -> Self {
2290
2291
Self :: from_be( Self :: from_ne_bytes( bytes) )
@@ -2317,7 +2318,7 @@ fn read_le_", stringify!($SelfT), "(input: &mut &[u8]) -> ", stringify!($SelfT),
2317
2318
}
2318
2319
```" ) ,
2319
2320
#[ stable( feature = "int_to_from_bytes" , since = "1.32.0" ) ]
2320
- #[ rustc_const_unstable ( feature = "const_int_conversion" , issue = "53718 " ) ]
2321
+ #[ rustc_const_stable ( feature = "const_int_conversion" , since = "1.43.0 " ) ]
2321
2322
#[ inline]
2322
2323
pub const fn from_le_bytes( bytes: [ u8 ; mem:: size_of:: <Self >( ) ] ) -> Self {
2323
2324
Self :: from_le( Self :: from_ne_bytes( bytes) )
@@ -2360,7 +2361,8 @@ fn read_ne_", stringify!($SelfT), "(input: &mut &[u8]) -> ", stringify!($SelfT),
2360
2361
}
2361
2362
```" ) ,
2362
2363
#[ stable( feature = "int_to_from_bytes" , since = "1.32.0" ) ]
2363
- #[ rustc_const_unstable( feature = "const_int_conversion" , issue = "53718" ) ]
2364
+ #[ rustc_const_stable( feature = "const_int_conversion" , since = "1.43.0" ) ]
2365
+ #[ allow_internal_unstable( const_transmute) ]
2364
2366
#[ inline]
2365
2367
pub const fn from_ne_bytes( bytes: [ u8 ; mem:: size_of:: <Self >( ) ] ) -> Self {
2366
2368
// SAFETY: integers are plain old datatypes so we can always transmute to them
@@ -4132,7 +4134,7 @@ let bytes = ", $swap_op, stringify!($SelfT), ".to_be_bytes();
4132
4134
assert_eq!(bytes, " , $be_bytes, ");
4133
4135
```" ) ,
4134
4136
#[ stable( feature = "int_to_from_bytes" , since = "1.32.0" ) ]
4135
- #[ rustc_const_unstable ( feature = "const_int_conversion" , issue = "53718 " ) ]
4137
+ #[ rustc_const_stable ( feature = "const_int_conversion" , since = "1.43.0 " ) ]
4136
4138
#[ inline]
4137
4139
pub const fn to_be_bytes( self ) -> [ u8 ; mem:: size_of:: <Self >( ) ] {
4138
4140
self . to_be( ) . to_ne_bytes( )
@@ -4152,7 +4154,7 @@ let bytes = ", $swap_op, stringify!($SelfT), ".to_le_bytes();
4152
4154
assert_eq!(bytes, " , $le_bytes, ");
4153
4155
```" ) ,
4154
4156
#[ stable( feature = "int_to_from_bytes" , since = "1.32.0" ) ]
4155
- #[ rustc_const_unstable ( feature = "const_int_conversion" , issue = "53718 " ) ]
4157
+ #[ rustc_const_stable ( feature = "const_int_conversion" , since = "1.43.0 " ) ]
4156
4158
#[ inline]
4157
4159
pub const fn to_le_bytes( self ) -> [ u8 ; mem:: size_of:: <Self >( ) ] {
4158
4160
self . to_le( ) . to_ne_bytes( )
@@ -4187,7 +4189,8 @@ assert_eq!(
4187
4189
);
4188
4190
```" ) ,
4189
4191
#[ stable( feature = "int_to_from_bytes" , since = "1.32.0" ) ]
4190
- #[ rustc_const_unstable( feature = "const_int_conversion" , issue = "53718" ) ]
4192
+ #[ rustc_const_stable( feature = "const_int_conversion" , since = "1.43.0" ) ]
4193
+ #[ allow_internal_unstable( const_transmute) ]
4191
4194
#[ inline]
4192
4195
pub const fn to_ne_bytes( self ) -> [ u8 ; mem:: size_of:: <Self >( ) ] {
4193
4196
// SAFETY: integers are plain old datatypes so we can always transmute them to
@@ -4221,7 +4224,7 @@ fn read_be_", stringify!($SelfT), "(input: &mut &[u8]) -> ", stringify!($SelfT),
4221
4224
}
4222
4225
```" ) ,
4223
4226
#[ stable( feature = "int_to_from_bytes" , since = "1.32.0" ) ]
4224
- #[ rustc_const_unstable ( feature = "const_int_conversion" , issue = "53718 " ) ]
4227
+ #[ rustc_const_stable ( feature = "const_int_conversion" , since = "1.43.0 " ) ]
4225
4228
#[ inline]
4226
4229
pub const fn from_be_bytes( bytes: [ u8 ; mem:: size_of:: <Self >( ) ] ) -> Self {
4227
4230
Self :: from_be( Self :: from_ne_bytes( bytes) )
@@ -4254,7 +4257,7 @@ fn read_le_", stringify!($SelfT), "(input: &mut &[u8]) -> ", stringify!($SelfT),
4254
4257
}
4255
4258
```" ) ,
4256
4259
#[ stable( feature = "int_to_from_bytes" , since = "1.32.0" ) ]
4257
- #[ rustc_const_unstable ( feature = "const_int_conversion" , issue = "53718 " ) ]
4260
+ #[ rustc_const_stable ( feature = "const_int_conversion" , since = "1.43.0 " ) ]
4258
4261
#[ inline]
4259
4262
pub const fn from_le_bytes( bytes: [ u8 ; mem:: size_of:: <Self >( ) ] ) -> Self {
4260
4263
Self :: from_le( Self :: from_ne_bytes( bytes) )
@@ -4297,7 +4300,8 @@ fn read_ne_", stringify!($SelfT), "(input: &mut &[u8]) -> ", stringify!($SelfT),
4297
4300
}
4298
4301
```" ) ,
4299
4302
#[ stable( feature = "int_to_from_bytes" , since = "1.32.0" ) ]
4300
- #[ rustc_const_unstable( feature = "const_int_conversion" , issue = "53718" ) ]
4303
+ #[ rustc_const_stable( feature = "const_int_conversion" , since = "1.43.0" ) ]
4304
+ #[ allow_internal_unstable( const_transmute) ]
4301
4305
#[ inline]
4302
4306
pub const fn from_ne_bytes( bytes: [ u8 ; mem:: size_of:: <Self >( ) ] ) -> Self {
4303
4307
// SAFETY: integers are plain old datatypes so we can always transmute to them
0 commit comments