@@ -517,7 +517,7 @@ impl f32 {
517517 /// ```
518518 #[ must_use]
519519 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
520- #[ rustc_const_unstable ( feature = "const_float_classify" , issue = "72505 " ) ]
520+ #[ rustc_const_stable ( feature = "const_float_classify" , since = "CURRENT_RUSTC_VERSION " ) ]
521521 #[ inline]
522522 #[ allow( clippy:: eq_op) ] // > if you intended to check if the operand is NaN, use `.is_nan()` instead :)
523523 pub const fn is_nan ( self ) -> bool {
@@ -528,7 +528,6 @@ impl f32 {
528528 // concerns about portability, so this implementation is for
529529 // private use internally.
530530 #[ inline]
531- #[ rustc_const_unstable( feature = "const_float_classify" , issue = "72505" ) ]
532531 pub ( crate ) const fn abs_private ( self ) -> f32 {
533532 // SAFETY: This transmutation is fine just like in `to_bits`/`from_bits`.
534533 unsafe { mem:: transmute :: < u32 , f32 > ( mem:: transmute :: < f32 , u32 > ( self ) & !Self :: SIGN_MASK ) }
@@ -551,7 +550,7 @@ impl f32 {
551550 /// ```
552551 #[ must_use]
553552 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
554- #[ rustc_const_unstable ( feature = "const_float_classify" , issue = "72505 " ) ]
553+ #[ rustc_const_stable ( feature = "const_float_classify" , since = "CURRENT_RUSTC_VERSION " ) ]
555554 #[ inline]
556555 pub const fn is_infinite ( self ) -> bool {
557556 // Getting clever with transmutation can result in incorrect answers on some FPUs
@@ -576,7 +575,7 @@ impl f32 {
576575 /// ```
577576 #[ must_use]
578577 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
579- #[ rustc_const_unstable ( feature = "const_float_classify" , issue = "72505 " ) ]
578+ #[ rustc_const_stable ( feature = "const_float_classify" , since = "CURRENT_RUSTC_VERSION " ) ]
580579 #[ inline]
581580 pub const fn is_finite ( self ) -> bool {
582581 // There's no need to handle NaN separately: if self is NaN,
@@ -604,7 +603,7 @@ impl f32 {
604603 /// [subnormal]: https://en.wikipedia.org/wiki/Denormal_number
605604 #[ must_use]
606605 #[ stable( feature = "is_subnormal" , since = "1.53.0" ) ]
607- #[ rustc_const_unstable ( feature = "const_float_classify" , issue = "72505 " ) ]
606+ #[ rustc_const_stable ( feature = "const_float_classify" , since = "CURRENT_RUSTC_VERSION " ) ]
608607 #[ inline]
609608 pub const fn is_subnormal ( self ) -> bool {
610609 matches ! ( self . classify( ) , FpCategory :: Subnormal )
@@ -631,7 +630,7 @@ impl f32 {
631630 /// [subnormal]: https://en.wikipedia.org/wiki/Denormal_number
632631 #[ must_use]
633632 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
634- #[ rustc_const_unstable ( feature = "const_float_classify" , issue = "72505 " ) ]
633+ #[ rustc_const_stable ( feature = "const_float_classify" , since = "CURRENT_RUSTC_VERSION " ) ]
635634 #[ inline]
636635 pub const fn is_normal ( self ) -> bool {
637636 matches ! ( self . classify( ) , FpCategory :: Normal )
@@ -651,7 +650,7 @@ impl f32 {
651650 /// assert_eq!(inf.classify(), FpCategory::Infinite);
652651 /// ```
653652 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
654- #[ rustc_const_unstable ( feature = "const_float_classify" , issue = "72505 " ) ]
653+ #[ rustc_const_stable ( feature = "const_float_classify" , since = "CURRENT_RUSTC_VERSION " ) ]
655654 pub const fn classify ( self ) -> FpCategory {
656655 // We used to have complicated logic here that avoids the simple bit-based tests to work
657656 // around buggy codegen for x87 targets (see
@@ -687,7 +686,7 @@ impl f32 {
687686 /// ```
688687 #[ must_use]
689688 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
690- #[ rustc_const_unstable ( feature = "const_float_classify" , issue = "72505 " ) ]
689+ #[ rustc_const_stable ( feature = "const_float_classify" , since = "CURRENT_RUSTC_VERSION " ) ]
691690 #[ inline]
692691 pub const fn is_sign_positive ( self ) -> bool {
693692 !self . is_sign_negative ( )
@@ -712,7 +711,7 @@ impl f32 {
712711 /// ```
713712 #[ must_use]
714713 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
715- #[ rustc_const_unstable ( feature = "const_float_classify" , issue = "72505 " ) ]
714+ #[ rustc_const_stable ( feature = "const_float_classify" , since = "CURRENT_RUSTC_VERSION " ) ]
716715 #[ inline]
717716 pub const fn is_sign_negative ( self ) -> bool {
718717 // IEEE754 says: isSignMinus(x) is true if and only if x has negative sign. isSignMinus
0 commit comments