From 8c6c2151bff5f08155cf75cb5c65a0041e4089d3 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Thu, 8 Jun 2017 11:34:22 -0400 Subject: [PATCH] Stabilize cmp::Reverse Closes #40893 --- src/libcore/cmp.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index 661cf73c7f30e..c694c3ec4b58a 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -335,7 +335,6 @@ impl Ordering { /// Example usage: /// /// ``` -/// #![feature(reverse_cmp_key)] /// use std::cmp::Reverse; /// /// let mut v = vec![1, 2, 3, 4, 5, 6]; @@ -343,10 +342,10 @@ impl Ordering { /// assert_eq!(v, vec![3, 2, 1, 6, 5, 4]); /// ``` #[derive(PartialEq, Eq, Debug)] -#[unstable(feature = "reverse_cmp_key", issue = "40893")] +#[stable(feature = "reverse_cmp_key", since = "1.19.0")] pub struct Reverse(pub T); -#[unstable(feature = "reverse_cmp_key", issue = "40893")] +#[stable(feature = "reverse_cmp_key", since = "1.19.0")] impl PartialOrd for Reverse { #[inline] fn partial_cmp(&self, other: &Reverse) -> Option { @@ -363,7 +362,7 @@ impl PartialOrd for Reverse { fn gt(&self, other: &Self) -> bool { other.0 > self.0 } } -#[unstable(feature = "reverse_cmp_key", issue = "40893")] +#[stable(feature = "reverse_cmp_key", since = "1.19.0")] impl Ord for Reverse { #[inline] fn cmp(&self, other: &Reverse) -> Ordering {