@@ -818,7 +818,7 @@ impl f32 {
818
818
/// ```
819
819
#[ must_use = "this returns the result of the operation, without modifying the original" ]
820
820
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
821
- #[ rustc_const_stable( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
821
+ #[ rustc_const_stable( feature = "const_float_methods" , since = "1.85.0 " ) ]
822
822
#[ inline]
823
823
pub const fn recip ( self ) -> f32 {
824
824
1.0 / self
@@ -836,7 +836,7 @@ impl f32 {
836
836
#[ must_use = "this returns the result of the operation, \
837
837
without modifying the original"]
838
838
#[ stable( feature = "f32_deg_rad_conversions" , since = "1.7.0" ) ]
839
- #[ rustc_const_stable( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
839
+ #[ rustc_const_stable( feature = "const_float_methods" , since = "1.85.0 " ) ]
840
840
#[ inline]
841
841
pub const fn to_degrees ( self ) -> f32 {
842
842
// Use a constant for better precision.
@@ -856,7 +856,7 @@ impl f32 {
856
856
#[ must_use = "this returns the result of the operation, \
857
857
without modifying the original"]
858
858
#[ stable( feature = "f32_deg_rad_conversions" , since = "1.7.0" ) ]
859
- #[ rustc_const_stable( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
859
+ #[ rustc_const_stable( feature = "const_float_methods" , since = "1.85.0 " ) ]
860
860
#[ inline]
861
861
pub const fn to_radians ( self ) -> f32 {
862
862
const RADS_PER_DEG : f32 = consts:: PI / 180.0 ;
@@ -878,7 +878,7 @@ impl f32 {
878
878
/// ```
879
879
#[ must_use = "this returns the result of the comparison, without modifying either input" ]
880
880
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
881
- #[ rustc_const_stable( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
881
+ #[ rustc_const_stable( feature = "const_float_methods" , since = "1.85.0 " ) ]
882
882
#[ inline]
883
883
pub const fn max ( self , other : f32 ) -> f32 {
884
884
intrinsics:: maxnumf32 ( self , other)
@@ -899,7 +899,7 @@ impl f32 {
899
899
/// ```
900
900
#[ must_use = "this returns the result of the comparison, without modifying either input" ]
901
901
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
902
- #[ rustc_const_stable( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
902
+ #[ rustc_const_stable( feature = "const_float_methods" , since = "1.85.0 " ) ]
903
903
#[ inline]
904
904
pub const fn min ( self , other : f32 ) -> f32 {
905
905
intrinsics:: minnumf32 ( self , other)
@@ -988,8 +988,8 @@ impl f32 {
988
988
/// assert_eq!((-5.5f32).midpoint(8.0), 1.25);
989
989
/// ```
990
990
#[ inline]
991
- #[ stable( feature = "num_midpoint" , since = "CURRENT_RUSTC_VERSION " ) ]
992
- #[ rustc_const_stable( feature = "num_midpoint" , since = "CURRENT_RUSTC_VERSION " ) ]
991
+ #[ stable( feature = "num_midpoint" , since = "1.85.0 " ) ]
992
+ #[ rustc_const_stable( feature = "num_midpoint" , since = "1.85.0 " ) ]
993
993
pub const fn midpoint ( self , other : f32 ) -> f32 {
994
994
cfg_if ! {
995
995
// Allow faster implementation that have known good 64-bit float
@@ -1396,7 +1396,7 @@ impl f32 {
1396
1396
/// ```
1397
1397
#[ must_use = "method returns a new number and does not mutate the original value" ]
1398
1398
#[ stable( feature = "clamp" , since = "1.50.0" ) ]
1399
- #[ rustc_const_stable( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
1399
+ #[ rustc_const_stable( feature = "const_float_methods" , since = "1.85.0 " ) ]
1400
1400
#[ inline]
1401
1401
pub const fn clamp ( mut self , min : f32 , max : f32 ) -> f32 {
1402
1402
const_assert ! (
@@ -1433,7 +1433,7 @@ impl f32 {
1433
1433
/// ```
1434
1434
#[ must_use = "method returns a new number and does not mutate the original value" ]
1435
1435
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1436
- #[ rustc_const_stable( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
1436
+ #[ rustc_const_stable( feature = "const_float_methods" , since = "1.85.0 " ) ]
1437
1437
#[ inline]
1438
1438
pub const fn abs ( self ) -> f32 {
1439
1439
// SAFETY: this is actually a safe intrinsic
@@ -1458,7 +1458,7 @@ impl f32 {
1458
1458
/// ```
1459
1459
#[ must_use = "method returns a new number and does not mutate the original value" ]
1460
1460
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1461
- #[ rustc_const_stable( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
1461
+ #[ rustc_const_stable( feature = "const_float_methods" , since = "1.85.0 " ) ]
1462
1462
#[ inline]
1463
1463
pub const fn signum ( self ) -> f32 {
1464
1464
if self . is_nan ( ) { Self :: NAN } else { 1.0_f32 . copysign ( self ) }
@@ -1493,7 +1493,7 @@ impl f32 {
1493
1493
#[ must_use = "method returns a new number and does not mutate the original value" ]
1494
1494
#[ inline]
1495
1495
#[ stable( feature = "copysign" , since = "1.35.0" ) ]
1496
- #[ rustc_const_stable( feature = "const_float_methods" , since = "CURRENT_RUSTC_VERSION " ) ]
1496
+ #[ rustc_const_stable( feature = "const_float_methods" , since = "1.85.0 " ) ]
1497
1497
pub const fn copysign ( self , sign : f32 ) -> f32 {
1498
1498
// SAFETY: this is actually a safe intrinsic
1499
1499
unsafe { intrinsics:: copysignf32 ( self , sign) }
0 commit comments