Skip to content

Commit d295bbf

Browse files
authored
Rollup merge of rust-lang#120150 - Jules-Bertholet:stabilize-round-ties-even, r=cuviper
Stabilize `round_ties_even` Closes rust-lang#96710 `@rustbot` label -T-libs T-libs-api
2 parents 5f72ef2 + 1d65033 commit d295bbf

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

std/src/f32.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ impl f32 {
102102
/// # Examples
103103
///
104104
/// ```
105-
/// #![feature(round_ties_even)]
106-
///
107105
/// let f = 3.3_f32;
108106
/// let g = -3.3_f32;
109107
/// let h = 3.5_f32;
@@ -116,7 +114,7 @@ impl f32 {
116114
/// ```
117115
#[rustc_allow_incoherent_impl]
118116
#[must_use = "method returns a new number and does not mutate the original value"]
119-
#[unstable(feature = "round_ties_even", issue = "96710")]
117+
#[stable(feature = "round_ties_even", since = "CURRENT_RUSTC_VERSION")]
120118
#[inline]
121119
pub fn round_ties_even(self) -> f32 {
122120
unsafe { intrinsics::rintf32(self) }

std/src/f64.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ impl f64 {
102102
/// # Examples
103103
///
104104
/// ```
105-
/// #![feature(round_ties_even)]
106-
///
107105
/// let f = 3.3_f64;
108106
/// let g = -3.3_f64;
109107
/// let h = 3.5_f64;
@@ -116,7 +114,7 @@ impl f64 {
116114
/// ```
117115
#[rustc_allow_incoherent_impl]
118116
#[must_use = "method returns a new number and does not mutate the original value"]
119-
#[unstable(feature = "round_ties_even", issue = "96710")]
117+
#[stable(feature = "round_ties_even", since = "CURRENT_RUSTC_VERSION")]
120118
#[inline]
121119
pub fn round_ties_even(self) -> f64 {
122120
unsafe { intrinsics::rintf64(self) }

std/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@
337337
#![feature(prelude_2024)]
338338
#![feature(ptr_as_uninit)]
339339
#![feature(raw_os_nonzero)]
340-
#![feature(round_ties_even)]
341340
#![feature(slice_internals)]
342341
#![feature(slice_ptr_get)]
343342
#![feature(slice_range)]

0 commit comments

Comments
 (0)