1
Fork 0

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 f64 {
/// # Examples
///
/// ```
/// #![feature(round_ties_even)]
///
/// let f = 3.3_f64;
/// let g = -3.3_f64;
/// let h = 3.5_f64;
@ -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) }