Skip to content

Commit 712bf2a

Browse files
orlpUrgau
authored andcommitted
Added tracking issue numbers for float_next_up_down.
1 parent de757e8 commit 712bf2a

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
@@ -704,7 +704,8 @@ impl f32 {
704704
/// [`INFINITY`]: Self::INFINITY
705705
/// [`MIN`]: Self::MIN
706706
/// [`MAX`]: Self::MAX
707-
#[unstable(feature = "float_next_up_down", issue = "none")]
707+
#[unstable(feature = "float_next_up_down", issue = "91399")]
708+
#[rustc_const_unstable(feature = "float_next_up_down", issue = "91399")]
708709
pub const fn next_up(self) -> Self {
709710
// We must use strictly integer arithmetic to prevent denormals from
710711
// flushing to zero after an arithmetic operation on some platforms.
@@ -753,7 +754,8 @@ impl f32 {
753754
/// [`INFINITY`]: Self::INFINITY
754755
/// [`MIN`]: Self::MIN
755756
/// [`MAX`]: Self::MAX
756-
#[unstable(feature = "float_next_up_down", issue = "none")]
757+
#[unstable(feature = "float_next_up_down", issue = "91399")]
758+
#[rustc_const_unstable(feature = "float_next_up_down", issue = "91399")]
757759
pub const fn next_down(self) -> Self {
758760
// We must use strictly integer arithmetic to prevent denormals from
759761
// 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
@@ -714,7 +714,8 @@ impl f64 {
714714
/// [`INFINITY`]: Self::INFINITY
715715
/// [`MIN`]: Self::MIN
716716
/// [`MAX`]: Self::MAX
717-
#[unstable(feature = "float_next_up_down", issue = "none")]
717+
#[unstable(feature = "float_next_up_down", issue = "91399")]
718+
#[rustc_const_unstable(feature = "float_next_up_down", issue = "91399")]
718719
pub const fn next_up(self) -> Self {
719720
// We must use strictly integer arithmetic to prevent denormals from
720721
// flushing to zero after an arithmetic operation on some platforms.
@@ -763,7 +764,8 @@ impl f64 {
763764
/// [`INFINITY`]: Self::INFINITY
764765
/// [`MIN`]: Self::MIN
765766
/// [`MAX`]: Self::MAX
766-
#[unstable(feature = "float_next_up_down", issue = "none")]
767+
#[unstable(feature = "float_next_up_down", issue = "91399")]
768+
#[rustc_const_unstable(feature = "float_next_up_down", issue = "91399")]
767769
pub const fn next_down(self) -> Self {
768770
// We must use strictly integer arithmetic to prevent denormals from
769771
// flushing to zero after an arithmetic operation on some platforms.

0 commit comments

Comments
 (0)