@@ -1115,7 +1115,7 @@ impl f32 {
1115
1115
#[ must_use = "this returns the result of the operation, \
1116
1116
without modifying the original"]
1117
1117
#[ stable( feature = "float_bits_conv" , since = "1.20.0" ) ]
1118
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1118
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1119
1119
#[ inline]
1120
1120
pub const fn to_bits ( self ) -> u32 {
1121
1121
// SAFETY: `u32` is a plain old datatype so we can always transmute to it.
@@ -1159,7 +1159,7 @@ impl f32 {
1159
1159
/// assert_eq!(v, 12.5);
1160
1160
/// ```
1161
1161
#[ stable( feature = "float_bits_conv" , since = "1.20.0" ) ]
1162
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1162
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1163
1163
#[ must_use]
1164
1164
#[ inline]
1165
1165
pub const fn from_bits ( v : u32 ) -> Self {
@@ -1183,7 +1183,7 @@ impl f32 {
1183
1183
#[ must_use = "this returns the result of the operation, \
1184
1184
without modifying the original"]
1185
1185
#[ stable( feature = "float_to_from_bytes" , since = "1.40.0" ) ]
1186
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1186
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1187
1187
#[ inline]
1188
1188
pub const fn to_be_bytes ( self ) -> [ u8 ; 4 ] {
1189
1189
self . to_bits ( ) . to_be_bytes ( )
@@ -1204,7 +1204,7 @@ impl f32 {
1204
1204
#[ must_use = "this returns the result of the operation, \
1205
1205
without modifying the original"]
1206
1206
#[ stable( feature = "float_to_from_bytes" , since = "1.40.0" ) ]
1207
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1207
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1208
1208
#[ inline]
1209
1209
pub const fn to_le_bytes ( self ) -> [ u8 ; 4 ] {
1210
1210
self . to_bits ( ) . to_le_bytes ( )
@@ -1238,7 +1238,7 @@ impl f32 {
1238
1238
#[ must_use = "this returns the result of the operation, \
1239
1239
without modifying the original"]
1240
1240
#[ stable( feature = "float_to_from_bytes" , since = "1.40.0" ) ]
1241
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1241
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1242
1242
#[ inline]
1243
1243
pub const fn to_ne_bytes ( self ) -> [ u8 ; 4 ] {
1244
1244
self . to_bits ( ) . to_ne_bytes ( )
@@ -1256,7 +1256,7 @@ impl f32 {
1256
1256
/// assert_eq!(value, 12.5);
1257
1257
/// ```
1258
1258
#[ stable( feature = "float_to_from_bytes" , since = "1.40.0" ) ]
1259
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1259
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1260
1260
#[ must_use]
1261
1261
#[ inline]
1262
1262
pub const fn from_be_bytes ( bytes : [ u8 ; 4 ] ) -> Self {
@@ -1275,7 +1275,7 @@ impl f32 {
1275
1275
/// assert_eq!(value, 12.5);
1276
1276
/// ```
1277
1277
#[ stable( feature = "float_to_from_bytes" , since = "1.40.0" ) ]
1278
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1278
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1279
1279
#[ must_use]
1280
1280
#[ inline]
1281
1281
pub const fn from_le_bytes ( bytes : [ u8 ; 4 ] ) -> Self {
@@ -1305,7 +1305,7 @@ impl f32 {
1305
1305
/// assert_eq!(value, 12.5);
1306
1306
/// ```
1307
1307
#[ stable( feature = "float_to_from_bytes" , since = "1.40.0" ) ]
1308
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1308
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1309
1309
#[ must_use]
1310
1310
#[ inline]
1311
1311
pub const fn from_ne_bytes ( bytes : [ u8 ; 4 ] ) -> Self {
0 commit comments