@@ -726,7 +726,6 @@ impl f32 {
726726 /// is finite `x == x.next_up().next_down()` also holds.
727727 ///
728728 /// ```rust
729- /// #![feature(float_next_up_down)]
730729 /// // f32::EPSILON is the difference between 1.0 and the next number up.
731730 /// assert_eq!(1.0f32.next_up(), 1.0 + f32::EPSILON);
732731 /// // But not for most numbers.
@@ -739,7 +738,8 @@ impl f32 {
739738 /// [`MIN`]: Self::MIN
740739 /// [`MAX`]: Self::MAX
741740 #[ inline]
742- #[ unstable( feature = "float_next_up_down" , issue = "91399" ) ]
741+ #[ stable( feature = "float_next_up_down" , since = "CURRENT_RUSTC_VERSION" ) ]
742+ #[ rustc_const_stable( feature = "float_next_up_down" , since = "CURRENT_RUSTC_VERSION" ) ]
743743 pub const fn next_up ( self ) -> Self {
744744 // Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
745745 // denormals to zero. This is in general unsound and unsupported, but here
@@ -774,7 +774,6 @@ impl f32 {
774774 /// is finite `x == x.next_down().next_up()` also holds.
775775 ///
776776 /// ```rust
777- /// #![feature(float_next_up_down)]
778777 /// let x = 1.0f32;
779778 /// // Clamp value into range [0, 1).
780779 /// let clamped = x.clamp(0.0, 1.0f32.next_down());
@@ -787,7 +786,8 @@ impl f32 {
787786 /// [`MIN`]: Self::MIN
788787 /// [`MAX`]: Self::MAX
789788 #[ inline]
790- #[ unstable( feature = "float_next_up_down" , issue = "91399" ) ]
789+ #[ stable( feature = "float_next_up_down" , since = "CURRENT_RUSTC_VERSION" ) ]
790+ #[ rustc_const_stable( feature = "float_next_up_down" , since = "CURRENT_RUSTC_VERSION" ) ]
791791 pub const fn next_down ( self ) -> Self {
792792 // Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
793793 // denormals to zero. This is in general unsound and unsupported, but here
0 commit comments