Skip to content

Commit

Permalink
Rollup merge of rust-lang#43043 - sfackler:reverse-stability, r=Mark-…
Browse files Browse the repository at this point in the history
…Simulacrum

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

Closes rust-lang#43027
  • Loading branch information
Mark-Simulacrum committed Jul 4, 2017
2 parents 1d0c2e9 + dcd7c5f commit 5b86b35
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 5b86b35

Please sign in to comment.