Skip to content

Commit

Permalink
Add a stability marker for core::cmp::Reverse.0
Browse files Browse the repository at this point in the history
Closes #43027
  • Loading branch information
sfackler committed Jul 3, 2017
1 parent 734c836 commit dcd7c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit dcd7c5f

Please sign in to comment.