]> git.lizzy.rs Git - rust.git/commitdiff
stabilized ord_max_min (fixes #25663)
authorMichal Budzynski <budziq@gmail.com>
Fri, 15 Sep 2017 10:54:03 +0000 (12:54 +0200)
committerMichal Budzynski <budziq@gmail.com>
Fri, 15 Sep 2017 10:54:03 +0000 (12:54 +0200)
src/libcore/cmp.rs
src/libcore/tests/lib.rs

index ec6525485f7a1d2a5107d4490f90ae8370936d51..6f86f8caad07343cc87f94310fc75040a00a2856 100644 (file)
@@ -453,12 +453,10 @@ pub trait Ord: Eq + PartialOrd<Self> {
     /// # Examples
     ///
     /// ```
-    /// #![feature(ord_max_min)]
-    ///
     /// assert_eq!(2, 1.max(2));
     /// assert_eq!(2, 2.max(2));
     /// ```
-    #[unstable(feature = "ord_max_min", issue = "25663")]
+    #[stable(feature = "ord_max_min", since = "1.22.0")]
     fn max(self, other: Self) -> Self
     where Self: Sized {
         if other >= self { other } else { self }
@@ -471,12 +469,10 @@ fn max(self, other: Self) -> Self
     /// # Examples
     ///
     /// ```
-    /// #![feature(ord_max_min)]
-    ///
     /// assert_eq!(1, 1.min(2));
     /// assert_eq!(2, 2.min(2));
     /// ```
-    #[unstable(feature = "ord_max_min", issue = "25663")]
+    #[stable(feature = "ord_max_min", since = "1.22.0")]
     fn min(self, other: Self) -> Self
     where Self: Sized {
         if self <= other { self } else { other }
index ab2022b1824ca3a2e5f5b682731d53c52abb5a14..1ba9d78f9de895ccc74a796b0a16799e6e2b6fcf 100644 (file)
@@ -27,7 +27,6 @@
 #![feature(inclusive_range_syntax)]
 #![feature(iter_rfind)]
 #![feature(nonzero)]
-#![feature(ord_max_min)]
 #![feature(rand)]
 #![feature(raw)]
 #![feature(refcell_replace_swap)]