diff options
| author | bors <bors@rust-lang.org> | 2021-04-13 05:59:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-04-13 05:59:10 +0000 |
| commit | 23aef90b4e28148099485cd4d4bfcd7df5e562c1 (patch) | |
| tree | 35c876d06dafe4e81081d08b7db39b53320ce05d /library/core/src/num | |
| parent | 7ce470fd9b1b08f71f10ecf084b47c1d93ade0db (diff) | |
| parent | 1a62bdbc30da6fd36c577c369f455494163ed1b2 (diff) | |
| download | rust-23aef90b4e28148099485cd4d4bfcd7df5e562c1.tar.gz rust-23aef90b4e28148099485cd4d4bfcd7df5e562c1.zip | |
Auto merge of #84086 - m-ou-se:stabilze-is-subnormal, r=dtolnay
Stabilize is_subnormal. FCP completed here: https://github.com/rust-lang/rust/issues/79288#issuecomment-817201311
Diffstat (limited to 'library/core/src/num')
| -rw-r--r-- | library/core/src/num/f32.rs | 3 | ||||
| -rw-r--r-- | library/core/src/num/f64.rs | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/library/core/src/num/f32.rs b/library/core/src/num/f32.rs index 690247bc96d..0d6d919d998 100644 --- a/library/core/src/num/f32.rs +++ b/library/core/src/num/f32.rs @@ -500,7 +500,6 @@ impl f32 { /// Returns `true` if the number is [subnormal]. /// /// ``` - /// #![feature(is_subnormal)] /// let min = f32::MIN_POSITIVE; // 1.17549435e-38f32 /// let max = f32::MAX; /// let lower_than_min = 1.0e-40_f32; @@ -516,7 +515,7 @@ impl f32 { /// assert!(lower_than_min.is_subnormal()); /// ``` /// [subnormal]: https://en.wikipedia.org/wiki/Denormal_number - #[unstable(feature = "is_subnormal", issue = "79288")] + #[stable(feature = "is_subnormal", since = "1.53.0")] #[rustc_const_unstable(feature = "const_float_classify", issue = "72505")] #[inline] pub const fn is_subnormal(self) -> bool { diff --git a/library/core/src/num/f64.rs b/library/core/src/num/f64.rs index 6d3737224c0..42214e7b50d 100644 --- a/library/core/src/num/f64.rs +++ b/library/core/src/num/f64.rs @@ -499,7 +499,6 @@ impl f64 { /// Returns `true` if the number is [subnormal]. /// /// ``` - /// #![feature(is_subnormal)] /// let min = f64::MIN_POSITIVE; // 2.2250738585072014e-308_f64 /// let max = f64::MAX; /// let lower_than_min = 1.0e-308_f64; @@ -515,7 +514,7 @@ impl f64 { /// assert!(lower_than_min.is_subnormal()); /// ``` /// [subnormal]: https://en.wikipedia.org/wiki/Denormal_number - #[unstable(feature = "is_subnormal", issue = "79288")] + #[stable(feature = "is_subnormal", since = "1.53.0")] #[rustc_const_unstable(feature = "const_float_classify", issue = "72505")] #[inline] pub const fn is_subnormal(self) -> bool { |
