Skip to content

Commit

Permalink
Stabilize feature const_ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
CDirkx committed Aug 30, 2020
1 parent 5fac991 commit 89fc3fb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions library/core/src/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ impl Ordering {
/// ```
#[inline]
#[must_use]
#[rustc_const_unstable(feature = "const_ordering", issue = "76113")]
#[rustc_const_stable(feature = "const_ordering", since = "1.47.0")]
#[stable(feature = "rust1", since = "1.0.0")]
pub const fn reverse(self) -> Ordering {
match self {
Expand Down Expand Up @@ -395,7 +395,7 @@ impl Ordering {
/// ```
#[inline]
#[must_use]
#[rustc_const_unstable(feature = "const_ordering", issue = "76113")]
#[rustc_const_stable(feature = "const_ordering", since = "1.47.0")]
#[stable(feature = "ordering_chaining", since = "1.17.0")]
pub const fn then(self, other: Ordering) -> Ordering {
match self {
Expand Down
1 change: 0 additions & 1 deletion library/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
#![feature(const_ptr_offset_from)]
#![feature(const_raw_ptr_comparison)]
#![feature(const_result)]
#![feature(const_ordering)]
#![feature(const_slice_from_raw_parts)]
#![feature(const_slice_ptr_len)]
#![feature(const_size_of_val)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/ui/consts/const-ordering.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// run-pass

#![feature(const_ordering)]

use std::cmp::Ordering;

// the following methods of core::cmp::Ordering are const:
Expand Down

0 comments on commit 89fc3fb

Please sign in to comment.