summary refs log tree commit diff
path: root/src/libcore/cmp.rs
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2017-03-14 21:06:29 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-03-17 14:37:53 -0700
commitdefd5196e76c8b829ecb3a448863deb9650754bb (patch)
treef4932dcfb326fb6dc66a06067873559e67f000d8 /src/libcore/cmp.rs
parent94a8e38d9ae67018f32dc1c4c567d41a1dadf3c3 (diff)
downloadrust-defd5196e76c8b829ecb3a448863deb9650754bb.tar.gz
rust-defd5196e76c8b829ecb3a448863deb9650754bb.zip
Stabilize ordering_chaining, closes #37053
Diffstat (limited to 'src/libcore/cmp.rs')
-rw-r--r--src/libcore/cmp.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs
index cc066099cf8..23213f56084 100644
--- a/src/libcore/cmp.rs
+++ b/src/libcore/cmp.rs
@@ -255,8 +255,6 @@ impl Ordering {
     /// # Examples
     ///
     /// ```
-    /// #![feature(ordering_chaining)]
-    ///
     /// use std::cmp::Ordering;
     ///
     /// let result = Ordering::Equal.then(Ordering::Less);
@@ -277,7 +275,7 @@ impl Ordering {
     ///
     /// assert_eq!(result, Ordering::Less);
     /// ```
-    #[unstable(feature = "ordering_chaining", issue = "37053")]
+    #[stable(feature = "ordering_chaining", since = "1.17.0")]
     pub fn then(self, other: Ordering) -> Ordering {
         match self {
             Equal => other,
@@ -293,8 +291,6 @@ impl Ordering {
     /// # Examples
     ///
     /// ```
-    /// #![feature(ordering_chaining)]
-    ///
     /// use std::cmp::Ordering;
     ///
     /// let result = Ordering::Equal.then_with(|| Ordering::Less);
@@ -315,7 +311,7 @@ impl Ordering {
     ///
     /// assert_eq!(result, Ordering::Less);
     /// ```
-    #[unstable(feature = "ordering_chaining", issue = "37053")]
+    #[stable(feature = "ordering_chaining", since = "1.17.0")]
     pub fn then_with<F: FnOnce() -> Ordering>(self, f: F) -> Ordering {
         match self {
             Equal => f(),