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

Closes #43027
This commit is contained in:
Steven Fackler 2017-07-03 13:46:37 -10:00
parent 734c83642c
commit dcd7c5f4e8

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> {