Rollup merge of #43043 - sfackler:reverse-stability, r=Mark-Simulacrum

Add a stability marker for core::cmp::Reverse.0

Closes #43027
This commit is contained in:
Mark Simulacrum 2017-07-04 07:41:44 -06:00 committed by GitHub
commit f80e58af89

View File

@ -343,7 +343,7 @@ impl Ordering {
/// ```
#[derive(PartialEq, Eq, Debug)]
#[stable(feature = "reverse_cmp_key", since = "1.19.0")]
pub struct Reverse<T>(pub T);
pub struct Reverse<T>(#[stable(feature = "reverse_cmp_key", since = "1.19.0")] pub T);
#[stable(feature = "reverse_cmp_key", since = "1.19.0")]
impl<T: PartialOrd> PartialOrd for Reverse<T> {