@@ -1113,7 +1113,7 @@ impl f32 {
1113
1113
#[ must_use = "this returns the result of the operation, \
1114
1114
without modifying the original"]
1115
1115
#[ stable( feature = "float_bits_conv" , since = "1.20.0" ) ]
1116
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1116
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1117
1117
#[ inline]
1118
1118
pub const fn to_bits ( self ) -> u32 {
1119
1119
// SAFETY: `u32` is a plain old datatype so we can always transmute to it.
@@ -1157,7 +1157,7 @@ impl f32 {
1157
1157
/// assert_eq!(v, 12.5);
1158
1158
/// ```
1159
1159
#[ stable( feature = "float_bits_conv" , since = "1.20.0" ) ]
1160
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1160
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1161
1161
#[ must_use]
1162
1162
#[ inline]
1163
1163
pub const fn from_bits ( v : u32 ) -> Self {
@@ -1181,7 +1181,7 @@ impl f32 {
1181
1181
#[ must_use = "this returns the result of the operation, \
1182
1182
without modifying the original"]
1183
1183
#[ stable( feature = "float_to_from_bytes" , since = "1.40.0" ) ]
1184
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1184
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1185
1185
#[ inline]
1186
1186
pub const fn to_be_bytes ( self ) -> [ u8 ; 4 ] {
1187
1187
self . to_bits ( ) . to_be_bytes ( )
@@ -1202,7 +1202,7 @@ impl f32 {
1202
1202
#[ must_use = "this returns the result of the operation, \
1203
1203
without modifying the original"]
1204
1204
#[ stable( feature = "float_to_from_bytes" , since = "1.40.0" ) ]
1205
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1205
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1206
1206
#[ inline]
1207
1207
pub const fn to_le_bytes ( self ) -> [ u8 ; 4 ] {
1208
1208
self . to_bits ( ) . to_le_bytes ( )
@@ -1236,7 +1236,7 @@ impl f32 {
1236
1236
#[ must_use = "this returns the result of the operation, \
1237
1237
without modifying the original"]
1238
1238
#[ stable( feature = "float_to_from_bytes" , since = "1.40.0" ) ]
1239
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1239
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1240
1240
#[ inline]
1241
1241
pub const fn to_ne_bytes ( self ) -> [ u8 ; 4 ] {
1242
1242
self . to_bits ( ) . to_ne_bytes ( )
@@ -1254,7 +1254,7 @@ impl f32 {
1254
1254
/// assert_eq!(value, 12.5);
1255
1255
/// ```
1256
1256
#[ stable( feature = "float_to_from_bytes" , since = "1.40.0" ) ]
1257
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1257
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1258
1258
#[ must_use]
1259
1259
#[ inline]
1260
1260
pub const fn from_be_bytes ( bytes : [ u8 ; 4 ] ) -> Self {
@@ -1273,7 +1273,7 @@ impl f32 {
1273
1273
/// assert_eq!(value, 12.5);
1274
1274
/// ```
1275
1275
#[ stable( feature = "float_to_from_bytes" , since = "1.40.0" ) ]
1276
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1276
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1277
1277
#[ must_use]
1278
1278
#[ inline]
1279
1279
pub const fn from_le_bytes ( bytes : [ u8 ; 4 ] ) -> Self {
@@ -1303,7 +1303,7 @@ impl f32 {
1303
1303
/// assert_eq!(value, 12.5);
1304
1304
/// ```
1305
1305
#[ stable( feature = "float_to_from_bytes" , since = "1.40.0" ) ]
1306
- #[ rustc_const_unstable ( feature = "const_float_bits_conv" , issue = "72447 " ) ]
1306
+ #[ rustc_const_stable ( feature = "const_float_bits_conv" , since = "CURRENT_RUSTC_VERSION " ) ]
1307
1307
#[ must_use]
1308
1308
#[ inline]
1309
1309
pub const fn from_ne_bytes ( bytes : [ u8 ; 4 ] ) -> Self {
0 commit comments