Skip to content

Commit 23aef90

Browse files
committed
Auto merge of #84086 - m-ou-se:stabilze-is-subnormal, r=dtolnay
Stabilize is_subnormal. FCP completed here: #79288 (comment)
2 parents 7ce470f + 1a62bdb commit 23aef90

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

library/core/src/num/f32.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@ impl f32 {
500500
/// Returns `true` if the number is [subnormal].
501501
///
502502
/// ```
503-
/// #![feature(is_subnormal)]
504503
/// let min = f32::MIN_POSITIVE; // 1.17549435e-38f32
505504
/// let max = f32::MAX;
506505
/// let lower_than_min = 1.0e-40_f32;
@@ -516,7 +515,7 @@ impl f32 {
516515
/// assert!(lower_than_min.is_subnormal());
517516
/// ```
518517
/// [subnormal]: https://en.wikipedia.org/wiki/Denormal_number
519-
#[unstable(feature = "is_subnormal", issue = "79288")]
518+
#[stable(feature = "is_subnormal", since = "1.53.0")]
520519
#[rustc_const_unstable(feature = "const_float_classify", issue = "72505")]
521520
#[inline]
522521
pub const fn is_subnormal(self) -> bool {

library/core/src/num/f64.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ impl f64 {
499499
/// Returns `true` if the number is [subnormal].
500500
///
501501
/// ```
502-
/// #![feature(is_subnormal)]
503502
/// let min = f64::MIN_POSITIVE; // 2.2250738585072014e-308_f64
504503
/// let max = f64::MAX;
505504
/// let lower_than_min = 1.0e-308_f64;
@@ -515,7 +514,7 @@ impl f64 {
515514
/// assert!(lower_than_min.is_subnormal());
516515
/// ```
517516
/// [subnormal]: https://en.wikipedia.org/wiki/Denormal_number
518-
#[unstable(feature = "is_subnormal", issue = "79288")]
517+
#[stable(feature = "is_subnormal", since = "1.53.0")]
519518
#[rustc_const_unstable(feature = "const_float_classify", issue = "72505")]
520519
#[inline]
521520
pub const fn is_subnormal(self) -> bool {

0 commit comments

Comments
 (0)