Skip to content

Commit

Permalink
Stabilize round_ties_even
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-Bertholet committed Jan 19, 2024
1 parent 88189a7 commit b72af9f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 9 deletions.
4 changes: 1 addition & 3 deletions library/std/src/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ impl f32 {
/// # Examples
///
/// ```
/// #![feature(round_ties_even)]
///
/// let f = 3.3_f32;
/// let g = -3.3_f32;
/// let h = 3.5_f32;
Expand All @@ -116,7 +114,7 @@ impl f32 {
/// ```
#[rustc_allow_incoherent_impl]
#[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]
pub fn round_ties_even(self) -> f32 {
unsafe { intrinsics::rintf32(self) }
Expand Down
4 changes: 1 addition & 3 deletions library/std/src/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ impl f64 {
/// # Examples
///
/// ```
/// #![feature(round_ties_even)]
///
/// let f = 3.3_f64;
/// let g = -3.3_f64;
/// let h = 3.5_f64;
Expand All @@ -116,7 +114,7 @@ impl f64 {
/// ```
#[rustc_allow_incoherent_impl]
#[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]
pub fn round_ties_even(self) -> f64 {
unsafe { intrinsics::rintf64(self) }
Expand Down
1 change: 0 additions & 1 deletion library/std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@
#![feature(prelude_2024)]
#![feature(ptr_as_uninit)]
#![feature(raw_os_nonzero)]
#![feature(round_ties_even)]
#![feature(slice_internals)]
#![feature(slice_ptr_get)]
#![feature(slice_range)]
Expand Down
1 change: 0 additions & 1 deletion src/tools/miri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#![feature(variant_count)]
#![feature(yeet_expr)]
#![feature(nonzero_ops)]
#![feature(round_ties_even)]
#![feature(let_chains)]
#![feature(lint_reasons)]
#![feature(int_roundings)]
Expand Down
1 change: 0 additions & 1 deletion src/tools/miri/tests/pass/float.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![feature(stmt_expr_attributes)]
#![feature(round_ties_even)]
#![feature(float_gamma)]
#![allow(arithmetic_overflow)]

Expand Down

0 comments on commit b72af9f

Please sign in to comment.