Skip to content

Commit 89fc3fb

Browse files
author
CDirkx
committed
Stabilize feature const_ordering
1 parent 5fac991 commit 89fc3fb

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

library/core/src/cmp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ impl Ordering {
356356
/// ```
357357
#[inline]
358358
#[must_use]
359-
#[rustc_const_unstable(feature = "const_ordering", issue = "76113")]
359+
#[rustc_const_stable(feature = "const_ordering", since = "1.47.0")]
360360
#[stable(feature = "rust1", since = "1.0.0")]
361361
pub const fn reverse(self) -> Ordering {
362362
match self {
@@ -395,7 +395,7 @@ impl Ordering {
395395
/// ```
396396
#[inline]
397397
#[must_use]
398-
#[rustc_const_unstable(feature = "const_ordering", issue = "76113")]
398+
#[rustc_const_stable(feature = "const_ordering", since = "1.47.0")]
399399
#[stable(feature = "ordering_chaining", since = "1.17.0")]
400400
pub const fn then(self, other: Ordering) -> Ordering {
401401
match self {

library/core/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
#![feature(const_ptr_offset_from)]
8787
#![feature(const_raw_ptr_comparison)]
8888
#![feature(const_result)]
89-
#![feature(const_ordering)]
9089
#![feature(const_slice_from_raw_parts)]
9190
#![feature(const_slice_ptr_len)]
9291
#![feature(const_size_of_val)]

src/test/ui/consts/const-ordering.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// run-pass
22

3-
#![feature(const_ordering)]
4-
53
use std::cmp::Ordering;
64

75
// the following methods of core::cmp::Ordering are const:

0 commit comments

Comments
 (0)