Stabilize total_cmp

This commit is contained in:
Pyry Kontio
2022-03-29 21:43:24 +09:00
parent 2ed6786404
commit 1b9cd5bb62
4 changed files with 2 additions and 6 deletions

View File

@@ -1040,7 +1040,6 @@ impl f32 {
/// # Example /// # Example
/// ///
/// ``` /// ```
/// #![feature(total_cmp)]
/// struct GoodBoy { /// struct GoodBoy {
/// name: String, /// name: String,
/// weight: f32, /// weight: f32,
@@ -1060,7 +1059,7 @@ impl f32 {
/// # .zip([-5.0, 0.1, 10.0, 99.0, f32::INFINITY, f32::NAN].iter()) /// # .zip([-5.0, 0.1, 10.0, 99.0, f32::INFINITY, f32::NAN].iter())
/// # .all(|(a, b)| a.to_bits() == b.to_bits())) /// # .all(|(a, b)| a.to_bits() == b.to_bits()))
/// ``` /// ```
#[unstable(feature = "total_cmp", issue = "72599")] #[stable(feature = "total_cmp", since = "1.62.0")]
#[must_use] #[must_use]
#[inline] #[inline]
pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering { pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {

View File

@@ -1056,7 +1056,6 @@ impl f64 {
/// # Example /// # Example
/// ///
/// ``` /// ```
/// #![feature(total_cmp)]
/// struct GoodBoy { /// struct GoodBoy {
/// name: String, /// name: String,
/// weight: f64, /// weight: f64,
@@ -1076,7 +1075,7 @@ impl f64 {
/// # .zip([-5.0, 0.1, 10.0, 99.0, f64::INFINITY, f64::NAN].iter()) /// # .zip([-5.0, 0.1, 10.0, 99.0, f64::INFINITY, f64::NAN].iter())
/// # .all(|(a, b)| a.to_bits() == b.to_bits())) /// # .all(|(a, b)| a.to_bits() == b.to_bits()))
/// ``` /// ```
#[unstable(feature = "total_cmp", issue = "72599")] #[stable(feature = "total_cmp", since = "1.62.0")]
#[must_use] #[must_use]
#[inline] #[inline]
pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering { pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {

View File

@@ -285,7 +285,6 @@
#![feature(std_internals)] #![feature(std_internals)]
#![feature(str_internals)] #![feature(str_internals)]
#![feature(strict_provenance)] #![feature(strict_provenance)]
#![feature(total_cmp)]
// //
// Library features (alloc): // Library features (alloc):
#![feature(alloc_layout_extra)] #![feature(alloc_layout_extra)]

View File

@@ -21,7 +21,6 @@
#![feature(staged_api)] #![feature(staged_api)]
#![feature(process_exitcode_internals)] #![feature(process_exitcode_internals)]
#![feature(test)] #![feature(test)]
#![feature(total_cmp)]
// Public reexports // Public reexports
pub use self::bench::{black_box, Bencher}; pub use self::bench::{black_box, Bencher};