@@ -334,7 +334,7 @@ impl f128 {
334
334
#[ inline]
335
335
#[ must_use]
336
336
#[ unstable( feature = "f128" , issue = "116909" ) ]
337
- #[ rustc_allow_const_fn_unstable ( const_float_methods ) ] // for `abs`
337
+ #[ rustc_const_unstable ( feature = "f128" , issue = "116909" ) ]
338
338
pub const fn is_finite ( self ) -> bool {
339
339
// There's no need to handle NaN separately: if self is NaN,
340
340
// the comparison is not true, exactly as desired.
@@ -612,7 +612,6 @@ impl f128 {
612
612
/// ```
613
613
#[ inline]
614
614
#[ unstable( feature = "f128" , issue = "116909" ) ]
615
- #[ rustc_const_unstable( feature = "const_float_methods" , issue = "130843" ) ]
616
615
#[ must_use = "this returns the result of the operation, without modifying the original" ]
617
616
pub const fn recip ( self ) -> Self {
618
617
1.0 / self
@@ -633,7 +632,6 @@ impl f128 {
633
632
/// ```
634
633
#[ inline]
635
634
#[ unstable( feature = "f128" , issue = "116909" ) ]
636
- #[ rustc_const_unstable( feature = "const_float_methods" , issue = "130843" ) ]
637
635
#[ must_use = "this returns the result of the operation, without modifying the original" ]
638
636
pub const fn to_degrees ( self ) -> Self {
639
637
// Use a literal for better precision.
@@ -657,7 +655,6 @@ impl f128 {
657
655
/// ```
658
656
#[ inline]
659
657
#[ unstable( feature = "f128" , issue = "116909" ) ]
660
- #[ rustc_const_unstable( feature = "const_float_methods" , issue = "130843" ) ]
661
658
#[ must_use = "this returns the result of the operation, without modifying the original" ]
662
659
pub const fn to_radians ( self ) -> f128 {
663
660
// Use a literal for better precision.
@@ -686,7 +683,7 @@ impl f128 {
686
683
/// ```
687
684
#[ inline]
688
685
#[ unstable( feature = "f128" , issue = "116909" ) ]
689
- #[ rustc_const_unstable( feature = "const_float_methods " , issue = "130843 " ) ]
686
+ #[ rustc_const_unstable( feature = "f128 " , issue = "116909 " ) ]
690
687
#[ must_use = "this returns the result of the comparison, without modifying either input" ]
691
688
pub const fn max ( self , other : f128 ) -> f128 {
692
689
intrinsics:: maxnumf128 ( self , other)
@@ -712,7 +709,7 @@ impl f128 {
712
709
/// ```
713
710
#[ inline]
714
711
#[ unstable( feature = "f128" , issue = "116909" ) ]
715
- #[ rustc_const_unstable( feature = "const_float_methods " , issue = "130843 " ) ]
712
+ #[ rustc_const_unstable( feature = "f128 " , issue = "116909 " ) ]
716
713
#[ must_use = "this returns the result of the comparison, without modifying either input" ]
717
714
pub const fn min ( self , other : f128 ) -> f128 {
718
715
intrinsics:: minnumf128 ( self , other)
@@ -1251,7 +1248,6 @@ impl f128 {
1251
1248
/// ```
1252
1249
#[ inline]
1253
1250
#[ unstable( feature = "f128" , issue = "116909" ) ]
1254
- #[ rustc_const_unstable( feature = "const_float_methods" , issue = "130843" ) ]
1255
1251
#[ must_use = "method returns a new number and does not mutate the original value" ]
1256
1252
pub const fn clamp ( mut self , min : f128 , max : f128 ) -> f128 {
1257
1253
const_assert ! (
@@ -1292,7 +1288,7 @@ impl f128 {
1292
1288
/// ```
1293
1289
#[ inline]
1294
1290
#[ unstable( feature = "f128" , issue = "116909" ) ]
1295
- #[ rustc_const_unstable( feature = "const_float_methods " , issue = "130843 " ) ]
1291
+ #[ rustc_const_unstable( feature = "f128 " , issue = "116909 " ) ]
1296
1292
#[ must_use = "method returns a new number and does not mutate the original value" ]
1297
1293
pub const fn abs ( self ) -> Self {
1298
1294
// FIXME(f16_f128): replace with `intrinsics::fabsf128` when available
@@ -1322,7 +1318,7 @@ impl f128 {
1322
1318
/// ```
1323
1319
#[ inline]
1324
1320
#[ unstable( feature = "f128" , issue = "116909" ) ]
1325
- #[ rustc_const_unstable( feature = "const_float_methods " , issue = "130843 " ) ]
1321
+ #[ rustc_const_unstable( feature = "f128 " , issue = "116909 " ) ]
1326
1322
#[ must_use = "method returns a new number and does not mutate the original value" ]
1327
1323
pub const fn signum ( self ) -> f128 {
1328
1324
if self . is_nan ( ) { Self :: NAN } else { 1.0_f128 . copysign ( self ) }
@@ -1360,7 +1356,7 @@ impl f128 {
1360
1356
/// ```
1361
1357
#[ inline]
1362
1358
#[ unstable( feature = "f128" , issue = "116909" ) ]
1363
- #[ rustc_const_unstable( feature = "const_float_methods " , issue = "130843 " ) ]
1359
+ #[ rustc_const_unstable( feature = "f128 " , issue = "116909 " ) ]
1364
1360
#[ must_use = "method returns a new number and does not mutate the original value" ]
1365
1361
pub const fn copysign ( self , sign : f128 ) -> f128 {
1366
1362
// SAFETY: this is actually a safe intrinsic
0 commit comments