Skip to content

Commit 1b1892a

Browse files
authored
Rollup merge of rust-lang#76172 - ecstatic-morse:revert-75463, r=RalfJung
Revert rust-lang#75463 This was approved by me prematurely. It needs T-libs approval. Sorry @CDirkx. r? @RalfJung
2 parents 29a823e + 1b12f8b commit 1b1892a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/src/cmp.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,8 @@ impl Ordering {
356356
/// ```
357357
#[inline]
358358
#[must_use]
359-
#[rustc_const_stable(feature = "const_ordering", since = "1.48.0")]
360359
#[stable(feature = "rust1", since = "1.0.0")]
361-
pub const fn reverse(self) -> Ordering {
360+
pub fn reverse(self) -> Ordering {
362361
match self {
363362
Less => Greater,
364363
Equal => Equal,
@@ -395,9 +394,8 @@ impl Ordering {
395394
/// ```
396395
#[inline]
397396
#[must_use]
398-
#[rustc_const_stable(feature = "const_ordering", since = "1.48.0")]
399397
#[stable(feature = "ordering_chaining", since = "1.17.0")]
400-
pub const fn then(self, other: Ordering) -> Ordering {
398+
pub fn then(self, other: Ordering) -> Ordering {
401399
match self {
402400
Equal => other,
403401
_ => self,

0 commit comments

Comments
 (0)