Skip to content

Commit 9d435d2

Browse files
authored
Rollup merge of #76172 - ecstatic-morse:revert-75463, r=RalfJung
Revert #75463 This was approved by me prematurely. It needs T-libs approval. Sorry @CDirkx. r? @RalfJung
2 parents 90e4bfa + 4404cc5 commit 9d435d2

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

library/core/src/cmp.rs

+2-4
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,

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

-15
This file was deleted.

0 commit comments

Comments
 (0)