Skip to content

Commit 5e9b68f

Browse files
Rollup merge of #44593 - budziq:stabilize_ord_max_min, r=alexcrichton
stabilized ord_max_min (fixes #25663)
2 parents a0f6aaa + 5398e03 commit 5e9b68f

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/libcore/cmp.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -453,12 +453,10 @@ pub trait Ord: Eq + PartialOrd<Self> {
453453
/// # Examples
454454
///
455455
/// ```
456-
/// #![feature(ord_max_min)]
457-
///
458456
/// assert_eq!(2, 1.max(2));
459457
/// assert_eq!(2, 2.max(2));
460458
/// ```
461-
#[unstable(feature = "ord_max_min", issue = "25663")]
459+
#[stable(feature = "ord_max_min", since = "1.22.0")]
462460
fn max(self, other: Self) -> Self
463461
where Self: Sized {
464462
if other >= self { other } else { self }
@@ -471,12 +469,10 @@ pub trait Ord: Eq + PartialOrd<Self> {
471469
/// # Examples
472470
///
473471
/// ```
474-
/// #![feature(ord_max_min)]
475-
///
476472
/// assert_eq!(1, 1.min(2));
477473
/// assert_eq!(2, 2.min(2));
478474
/// ```
479-
#[unstable(feature = "ord_max_min", issue = "25663")]
475+
#[stable(feature = "ord_max_min", since = "1.22.0")]
480476
fn min(self, other: Self) -> Self
481477
where Self: Sized {
482478
if self <= other { self } else { other }

src/libcore/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#![feature(inclusive_range_syntax)]
2828
#![feature(iter_rfind)]
2929
#![feature(nonzero)]
30-
#![feature(ord_max_min)]
3130
#![feature(rand)]
3231
#![feature(raw)]
3332
#![feature(refcell_replace_swap)]

0 commit comments

Comments
 (0)