Skip to content

Commit f020ba4

Browse files
committed
Added tracking issue numbers for float_next_up_down.
1 parent c4e0622 commit f020ba4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

library/core/src/num/f32.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,8 @@ impl f32 {
646646
/// [`INFINITY`]: Self::INFINITY
647647
/// [`MIN`]: Self::MIN
648648
/// [`MAX`]: Self::MAX
649-
#[unstable(feature = "float_next_up_down", issue = "none")]
649+
#[unstable(feature = "float_next_up_down", issue = "91399")]
650+
#[rustc_const_unstable(feature = "float_next_up_down", issue = "91399")]
650651
pub const fn next_up(self) -> Self {
651652
// We must use strictly integer arithmetic to prevent denormals from
652653
// flushing to zero after an arithmetic operation on some platforms.
@@ -695,7 +696,8 @@ impl f32 {
695696
/// [`INFINITY`]: Self::INFINITY
696697
/// [`MIN`]: Self::MIN
697698
/// [`MAX`]: Self::MAX
698-
#[unstable(feature = "float_next_up_down", issue = "none")]
699+
#[unstable(feature = "float_next_up_down", issue = "91399")]
700+
#[rustc_const_unstable(feature = "float_next_up_down", issue = "91399")]
699701
pub const fn next_down(self) -> Self {
700702
// We must use strictly integer arithmetic to prevent denormals from
701703
// flushing to zero after an arithmetic operation on some platforms.

library/core/src/num/f64.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,8 @@ impl f64 {
661661
/// [`INFINITY`]: Self::INFINITY
662662
/// [`MIN`]: Self::MIN
663663
/// [`MAX`]: Self::MAX
664-
#[unstable(feature = "float_next_up_down", issue = "none")]
664+
#[unstable(feature = "float_next_up_down", issue = "91399")]
665+
#[rustc_const_unstable(feature = "float_next_up_down", issue = "91399")]
665666
pub const fn next_up(self) -> Self {
666667
// We must use strictly integer arithmetic to prevent denormals from
667668
// flushing to zero after an arithmetic operation on some platforms.
@@ -710,7 +711,8 @@ impl f64 {
710711
/// [`INFINITY`]: Self::INFINITY
711712
/// [`MIN`]: Self::MIN
712713
/// [`MAX`]: Self::MAX
713-
#[unstable(feature = "float_next_up_down", issue = "none")]
714+
#[unstable(feature = "float_next_up_down", issue = "91399")]
715+
#[rustc_const_unstable(feature = "float_next_up_down", issue = "91399")]
714716
pub const fn next_down(self) -> Self {
715717
// We must use strictly integer arithmetic to prevent denormals from
716718
// flushing to zero after an arithmetic operation on some platforms.

0 commit comments

Comments
 (0)