Skip to content

Commit

Permalink
Rollup merge of rust-lang#76172 - ecstatic-morse:revert-75463, r=Ralf…
Browse files Browse the repository at this point in the history
…Jung

Revert rust-lang#75463

This was approved by me prematurely. It needs T-libs approval. Sorry @CDirkx.

r? @RalfJung
  • Loading branch information
tmandry authored Sep 1, 2020
2 parents 90e4bfa + 4404cc5 commit 9d435d2
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 9d435d2

Please sign in to comment.