Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
This was approved by me prematurely. It needs T-libs approval.
  • Loading branch information
ecstatic-morse committed Aug 31, 2020
1 parent 1fd8636 commit 4404cc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
6 changes: 2 additions & 4 deletions library/core/src/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,8 @@ impl Ordering {
/// ```
#[inline]
#[must_use]
#[rustc_const_stable(feature = "const_ordering", since = "1.48.0")]
#[stable(feature = "rust1", since = "1.0.0")]
pub const fn reverse(self) -> Ordering {
pub fn reverse(self) -> Ordering {
match self {
Less => Greater,
Equal => Equal,
Expand Down Expand Up @@ -395,9 +394,8 @@ impl Ordering {
/// ```
#[inline]
#[must_use]
#[rustc_const_stable(feature = "const_ordering", since = "1.48.0")]
#[stable(feature = "ordering_chaining", since = "1.17.0")]
pub const fn then(self, other: Ordering) -> Ordering {
pub fn then(self, other: Ordering) -> Ordering {
match self {
Equal => other,
_ => self,
Expand Down
15 changes: 0 additions & 15 deletions src/test/ui/consts/const-ordering.rs

This file was deleted.

0 comments on commit 4404cc5

Please sign in to comment.