@@ -818,7 +818,7 @@ impl f32 {
818818 /// ```
819819 #[ must_use = "this returns the result of the operation, without modifying the original" ]
820820 #[ 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 " ) ]
822822 #[ inline]
823823 pub const fn recip ( self ) -> f32 {
824824 1.0 / self
@@ -836,7 +836,7 @@ impl f32 {
836836 #[ must_use = "this returns the result of the operation, \
837837 without modifying the original"]
838838 #[ 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 " ) ]
840840 #[ inline]
841841 pub const fn to_degrees ( self ) -> f32 {
842842 // Use a constant for better precision.
@@ -856,7 +856,7 @@ impl f32 {
856856 #[ must_use = "this returns the result of the operation, \
857857 without modifying the original"]
858858 #[ 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 " ) ]
860860 #[ inline]
861861 pub const fn to_radians ( self ) -> f32 {
862862 const RADS_PER_DEG : f32 = consts:: PI / 180.0 ;
@@ -878,7 +878,7 @@ impl f32 {
878878 /// ```
879879 #[ must_use = "this returns the result of the comparison, without modifying either input" ]
880880 #[ 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 " ) ]
882882 #[ inline]
883883 pub const fn max ( self , other : f32 ) -> f32 {
884884 intrinsics:: maxnumf32 ( self , other)
@@ -899,7 +899,7 @@ impl f32 {
899899 /// ```
900900 #[ must_use = "this returns the result of the comparison, without modifying either input" ]
901901 #[ 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 " ) ]
903903 #[ inline]
904904 pub const fn min ( self , other : f32 ) -> f32 {
905905 intrinsics:: minnumf32 ( self , other)
@@ -988,8 +988,8 @@ impl f32 {
988988 /// assert_eq!((-5.5f32).midpoint(8.0), 1.25);
989989 /// ```
990990 #[ 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 " ) ]
993993 pub const fn midpoint ( self , other : f32 ) -> f32 {
994994 cfg_if ! {
995995 // Allow faster implementation that have known good 64-bit float
@@ -1396,7 +1396,7 @@ impl f32 {
13961396 /// ```
13971397 #[ must_use = "method returns a new number and does not mutate the original value" ]
13981398 #[ 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 " ) ]
14001400 #[ inline]
14011401 pub const fn clamp ( mut self , min : f32 , max : f32 ) -> f32 {
14021402 const_assert ! (
@@ -1433,7 +1433,7 @@ impl f32 {
14331433 /// ```
14341434 #[ must_use = "method returns a new number and does not mutate the original value" ]
14351435 #[ 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 " ) ]
14371437 #[ inline]
14381438 pub const fn abs ( self ) -> f32 {
14391439 // SAFETY: this is actually a safe intrinsic
@@ -1458,7 +1458,7 @@ impl f32 {
14581458 /// ```
14591459 #[ must_use = "method returns a new number and does not mutate the original value" ]
14601460 #[ 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 " ) ]
14621462 #[ inline]
14631463 pub const fn signum ( self ) -> f32 {
14641464 if self . is_nan ( ) { Self :: NAN } else { 1.0_f32 . copysign ( self ) }
@@ -1493,7 +1493,7 @@ impl f32 {
14931493 #[ must_use = "method returns a new number and does not mutate the original value" ]
14941494 #[ inline]
14951495 #[ 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 " ) ]
14971497 pub const fn copysign ( self , sign : f32 ) -> f32 {
14981498 // SAFETY: this is actually a safe intrinsic
14991499 unsafe { intrinsics:: copysignf32 ( self , sign) }
0 commit comments