Skip to content

Commit 1b9cd5b

Browse files
committed
Stabilize total_cmp
1 parent 2ed6786 commit 1b9cd5b

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

library/core/src/num/f32.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,6 @@ impl f32 {
10401040
/// # Example
10411041
///
10421042
/// ```
1043-
/// #![feature(total_cmp)]
10441043
/// struct GoodBoy {
10451044
/// name: String,
10461045
/// weight: f32,
@@ -1060,7 +1059,7 @@ impl f32 {
10601059
/// # .zip([-5.0, 0.1, 10.0, 99.0, f32::INFINITY, f32::NAN].iter())
10611060
/// # .all(|(a, b)| a.to_bits() == b.to_bits()))
10621061
/// ```
1063-
#[unstable(feature = "total_cmp", issue = "72599")]
1062+
#[stable(feature = "total_cmp", since = "1.62.0")]
10641063
#[must_use]
10651064
#[inline]
10661065
pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {

library/core/src/num/f64.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,6 @@ impl f64 {
10561056
/// # Example
10571057
///
10581058
/// ```
1059-
/// #![feature(total_cmp)]
10601059
/// struct GoodBoy {
10611060
/// name: String,
10621061
/// weight: f64,
@@ -1076,7 +1075,7 @@ impl f64 {
10761075
/// # .zip([-5.0, 0.1, 10.0, 99.0, f64::INFINITY, f64::NAN].iter())
10771076
/// # .all(|(a, b)| a.to_bits() == b.to_bits()))
10781077
/// ```
1079-
#[unstable(feature = "total_cmp", issue = "72599")]
1078+
#[stable(feature = "total_cmp", since = "1.62.0")]
10801079
#[must_use]
10811080
#[inline]
10821081
pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {

library/std/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@
285285
#![feature(std_internals)]
286286
#![feature(str_internals)]
287287
#![feature(strict_provenance)]
288-
#![feature(total_cmp)]
289288
//
290289
// Library features (alloc):
291290
#![feature(alloc_layout_extra)]

library/test/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#![feature(staged_api)]
2222
#![feature(process_exitcode_internals)]
2323
#![feature(test)]
24-
#![feature(total_cmp)]
2524

2625
// Public reexports
2726
pub use self::bench::{black_box, Bencher};

0 commit comments

Comments
 (0)