@@ -726,7 +726,6 @@ impl f32 {
726
726
/// is finite `x == x.next_up().next_down()` also holds.
727
727
///
728
728
/// ```rust
729
- /// #![feature(float_next_up_down)]
730
729
/// // f32::EPSILON is the difference between 1.0 and the next number up.
731
730
/// assert_eq!(1.0f32.next_up(), 1.0 + f32::EPSILON);
732
731
/// // But not for most numbers.
@@ -739,7 +738,8 @@ impl f32 {
739
738
/// [`MIN`]: Self::MIN
740
739
/// [`MAX`]: Self::MAX
741
740
#[ 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" ) ]
743
743
pub const fn next_up ( self ) -> Self {
744
744
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
745
745
// denormals to zero. This is in general unsound and unsupported, but here
@@ -774,7 +774,6 @@ impl f32 {
774
774
/// is finite `x == x.next_down().next_up()` also holds.
775
775
///
776
776
/// ```rust
777
- /// #![feature(float_next_up_down)]
778
777
/// let x = 1.0f32;
779
778
/// // Clamp value into range [0, 1).
780
779
/// let clamped = x.clamp(0.0, 1.0f32.next_down());
@@ -787,7 +786,8 @@ impl f32 {
787
786
/// [`MIN`]: Self::MIN
788
787
/// [`MAX`]: Self::MAX
789
788
#[ 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" ) ]
791
791
pub const fn next_down ( self ) -> Self {
792
792
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
793
793
// denormals to zero. This is in general unsound and unsupported, but here
0 commit comments