diff options
| author | Orson Peters <orsonpeters@gmail.com> | 2021-11-30 20:54:12 +0100 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2022-08-15 12:33:00 +0200 |
| commit | 712bf2a07a31f1fb8234ec5823d9913f1091e413 (patch) | |
| tree | bf76fc5adc71664aae00053fbc8824c041b30bb6 | |
| parent | de757e8a98ce0a4efe91f2f46e93abe1c197bcdf (diff) | |
| download | rust-712bf2a07a31f1fb8234ec5823d9913f1091e413.tar.gz rust-712bf2a07a31f1fb8234ec5823d9913f1091e413.zip | |
Added tracking issue numbers for float_next_up_down.
| -rw-r--r-- | library/core/src/num/f32.rs | 6 | ||||
| -rw-r--r-- | library/core/src/num/f64.rs | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/library/core/src/num/f32.rs b/library/core/src/num/f32.rs index 7c38d830636..f6cef3f8067 100644 --- a/library/core/src/num/f32.rs +++ b/library/core/src/num/f32.rs @@ -704,7 +704,8 @@ impl f32 { /// [`INFINITY`]: Self::INFINITY /// [`MIN`]: Self::MIN /// [`MAX`]: Self::MAX - #[unstable(feature = "float_next_up_down", issue = "none")] + #[unstable(feature = "float_next_up_down", issue = "91399")] + #[rustc_const_unstable(feature = "float_next_up_down", issue = "91399")] pub const fn next_up(self) -> Self { // We must use strictly integer arithmetic to prevent denormals from // flushing to zero after an arithmetic operation on some platforms. @@ -753,7 +754,8 @@ impl f32 { /// [`INFINITY`]: Self::INFINITY /// [`MIN`]: Self::MIN /// [`MAX`]: Self::MAX - #[unstable(feature = "float_next_up_down", issue = "none")] + #[unstable(feature = "float_next_up_down", issue = "91399")] + #[rustc_const_unstable(feature = "float_next_up_down", issue = "91399")] pub const fn next_down(self) -> Self { // We must use strictly integer arithmetic to prevent denormals from // flushing to zero after an arithmetic operation on some platforms. diff --git a/library/core/src/num/f64.rs b/library/core/src/num/f64.rs index 8146f007531..328b19b203c 100644 --- a/library/core/src/num/f64.rs +++ b/library/core/src/num/f64.rs @@ -714,7 +714,8 @@ impl f64 { /// [`INFINITY`]: Self::INFINITY /// [`MIN`]: Self::MIN /// [`MAX`]: Self::MAX - #[unstable(feature = "float_next_up_down", issue = "none")] + #[unstable(feature = "float_next_up_down", issue = "91399")] + #[rustc_const_unstable(feature = "float_next_up_down", issue = "91399")] pub const fn next_up(self) -> Self { // We must use strictly integer arithmetic to prevent denormals from // flushing to zero after an arithmetic operation on some platforms. @@ -763,7 +764,8 @@ impl f64 { /// [`INFINITY`]: Self::INFINITY /// [`MIN`]: Self::MIN /// [`MAX`]: Self::MAX - #[unstable(feature = "float_next_up_down", issue = "none")] + #[unstable(feature = "float_next_up_down", issue = "91399")] + #[rustc_const_unstable(feature = "float_next_up_down", issue = "91399")] pub const fn next_down(self) -> Self { // We must use strictly integer arithmetic to prevent denormals from // flushing to zero after an arithmetic operation on some platforms. |
