@@ -569,7 +569,6 @@ impl f32 {
569569 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
570570 #[ rustc_const_stable( feature = "const_float_classify" , since = "1.83.0" ) ]
571571 #[ inline]
572- #[ rustc_allow_const_fn_unstable( const_float_methods) ] // for `abs`
573572 pub const fn is_finite ( self ) -> bool {
574573 // There's no need to handle NaN separately: if self is NaN,
575574 // the comparison is not true, exactly as desired.
@@ -819,7 +818,7 @@ impl f32 {
819818 /// ```
820819 #[ must_use = "this returns the result of the operation, without modifying the original" ]
821820 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
822- #[ rustc_const_unstable ( feature = "const_float_methods" , issue = "130843 " ) ]
821+ #[ rustc_const_stable ( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
823822 #[ inline]
824823 pub const fn recip ( self ) -> f32 {
825824 1.0 / self
@@ -837,7 +836,7 @@ impl f32 {
837836 #[ must_use = "this returns the result of the operation, \
838837 without modifying the original"]
839838 #[ stable( feature = "f32_deg_rad_conversions" , since = "1.7.0" ) ]
840- #[ rustc_const_unstable ( feature = "const_float_methods" , issue = "130843 " ) ]
839+ #[ rustc_const_stable ( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
841840 #[ inline]
842841 pub const fn to_degrees ( self ) -> f32 {
843842 // Use a constant for better precision.
@@ -857,7 +856,7 @@ impl f32 {
857856 #[ must_use = "this returns the result of the operation, \
858857 without modifying the original"]
859858 #[ stable( feature = "f32_deg_rad_conversions" , since = "1.7.0" ) ]
860- #[ rustc_const_unstable ( feature = "const_float_methods" , issue = "130843 " ) ]
859+ #[ rustc_const_stable ( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
861860 #[ inline]
862861 pub const fn to_radians ( self ) -> f32 {
863862 const RADS_PER_DEG : f32 = consts:: PI / 180.0 ;
@@ -879,7 +878,7 @@ impl f32 {
879878 /// ```
880879 #[ must_use = "this returns the result of the comparison, without modifying either input" ]
881880 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
882- #[ rustc_const_unstable ( feature = "const_float_methods" , issue = "130843 " ) ]
881+ #[ rustc_const_stable ( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
883882 #[ inline]
884883 pub const fn max ( self , other : f32 ) -> f32 {
885884 intrinsics:: maxnumf32 ( self , other)
@@ -900,7 +899,7 @@ impl f32 {
900899 /// ```
901900 #[ must_use = "this returns the result of the comparison, without modifying either input" ]
902901 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
903- #[ rustc_const_unstable ( feature = "const_float_methods" , issue = "130843 " ) ]
902+ #[ rustc_const_stable ( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
904903 #[ inline]
905904 pub const fn min ( self , other : f32 ) -> f32 {
906905 intrinsics:: minnumf32 ( self , other)
@@ -1397,7 +1396,7 @@ impl f32 {
13971396 /// ```
13981397 #[ must_use = "method returns a new number and does not mutate the original value" ]
13991398 #[ stable( feature = "clamp" , since = "1.50.0" ) ]
1400- #[ rustc_const_unstable ( feature = "const_float_methods" , issue = "130843 " ) ]
1399+ #[ rustc_const_stable ( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
14011400 #[ inline]
14021401 pub const fn clamp ( mut self , min : f32 , max : f32 ) -> f32 {
14031402 const_assert ! (
@@ -1434,7 +1433,7 @@ impl f32 {
14341433 /// ```
14351434 #[ must_use = "method returns a new number and does not mutate the original value" ]
14361435 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1437- #[ rustc_const_unstable ( feature = "const_float_methods" , issue = "130843 " ) ]
1436+ #[ rustc_const_stable ( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
14381437 #[ inline]
14391438 pub const fn abs ( self ) -> f32 {
14401439 // SAFETY: this is actually a safe intrinsic
@@ -1459,7 +1458,7 @@ impl f32 {
14591458 /// ```
14601459 #[ must_use = "method returns a new number and does not mutate the original value" ]
14611460 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1462- #[ rustc_const_unstable ( feature = "const_float_methods" , issue = "130843 " ) ]
1461+ #[ rustc_const_stable ( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
14631462 #[ inline]
14641463 pub const fn signum ( self ) -> f32 {
14651464 if self . is_nan ( ) { Self :: NAN } else { 1.0_f32 . copysign ( self ) }
@@ -1494,7 +1493,7 @@ impl f32 {
14941493 #[ must_use = "method returns a new number and does not mutate the original value" ]
14951494 #[ inline]
14961495 #[ stable( feature = "copysign" , since = "1.35.0" ) ]
1497- #[ rustc_const_unstable ( feature = "const_float_methods" , issue = "130843 " ) ]
1496+ #[ rustc_const_stable ( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
14981497 pub const fn copysign ( self , sign : f32 ) -> f32 {
14991498 // SAFETY: this is actually a safe intrinsic
15001499 unsafe { intrinsics:: copysignf32 ( self , sign) }
0 commit comments