Stabilize round_ties_even

This commit is contained in:
Jules Bertholet 2024-01-19 18:02:05 -05:00
parent 88189a71e4
commit b72af9fe9b
No known key found for this signature in database
GPG Key ID: 32034DAFC38C1BFC
5 changed files with 2 additions and 9 deletions

View File

@ -102,8 +102,6 @@ impl f32 {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(round_ties_even)]
///
/// let f = 3.3_f32; /// let f = 3.3_f32;
/// let g = -3.3_f32; /// let g = -3.3_f32;
/// let h = 3.5_f32; /// let h = 3.5_f32;
@ -116,7 +114,7 @@ impl f32 {
/// ``` /// ```
#[rustc_allow_incoherent_impl] #[rustc_allow_incoherent_impl]
#[must_use = "method returns a new number and does not mutate the original value"] #[must_use = "method returns a new number and does not mutate the original value"]
#[unstable(feature = "round_ties_even", issue = "96710")] #[stable(feature = "round_ties_even", since = "CURRENT_RUSTC_VERSION")]
#[inline] #[inline]
pub fn round_ties_even(self) -> f32 { pub fn round_ties_even(self) -> f32 {
unsafe { intrinsics::rintf32(self) } unsafe { intrinsics::rintf32(self) }

View File

@ -102,8 +102,6 @@ impl f64 {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(round_ties_even)]
///
/// let f = 3.3_f64; /// let f = 3.3_f64;
/// let g = -3.3_f64; /// let g = -3.3_f64;
/// let h = 3.5_f64; /// let h = 3.5_f64;
@ -116,7 +114,7 @@ impl f64 {
/// ``` /// ```
#[rustc_allow_incoherent_impl] #[rustc_allow_incoherent_impl]
#[must_use = "method returns a new number and does not mutate the original value"] #[must_use = "method returns a new number and does not mutate the original value"]
#[unstable(feature = "round_ties_even", issue = "96710")] #[stable(feature = "round_ties_even", since = "CURRENT_RUSTC_VERSION")]
#[inline] #[inline]
pub fn round_ties_even(self) -> f64 { pub fn round_ties_even(self) -> f64 {
unsafe { intrinsics::rintf64(self) } unsafe { intrinsics::rintf64(self) }

View File

@ -338,7 +338,6 @@
#![feature(prelude_2024)] #![feature(prelude_2024)]
#![feature(ptr_as_uninit)] #![feature(ptr_as_uninit)]
#![feature(raw_os_nonzero)] #![feature(raw_os_nonzero)]
#![feature(round_ties_even)]
#![feature(slice_internals)] #![feature(slice_internals)]
#![feature(slice_ptr_get)] #![feature(slice_ptr_get)]
#![feature(slice_range)] #![feature(slice_range)]

View File

@ -8,7 +8,6 @@
#![feature(variant_count)] #![feature(variant_count)]
#![feature(yeet_expr)] #![feature(yeet_expr)]
#![feature(nonzero_ops)] #![feature(nonzero_ops)]
#![feature(round_ties_even)]
#![feature(let_chains)] #![feature(let_chains)]
#![feature(lint_reasons)] #![feature(lint_reasons)]
#![feature(int_roundings)] #![feature(int_roundings)]

View File

@ -1,5 +1,4 @@
#![feature(stmt_expr_attributes)] #![feature(stmt_expr_attributes)]
#![feature(round_ties_even)]
#![feature(float_gamma)] #![feature(float_gamma)]
#![allow(arithmetic_overflow)] #![allow(arithmetic_overflow)]