Skip to content

Commit

Permalink
Rollup merge of rust-lang#48628 - strake:reverse, r=sfackler
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Mar 3, 2018
2 parents 8c7c8fb + 25b69c4 commit 6fa14f0
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 {
/// v.sort_by_key(|&num| (num > 3, Reverse(num)));
/// assert_eq!(v, vec![3, 2, 1, 6, 5, 4]);
/// ```
#[derive(PartialEq, Eq, Debug, Copy, Clone)]
#[derive(PartialEq, Eq, Debug, Copy, Clone, Default, Hash)]
#[stable(feature = "reverse_cmp_key", since = "1.19.0")]
pub struct Reverse<T>(#[stable(feature = "reverse_cmp_key", since = "1.19.0")] pub T);

Expand Down

0 comments on commit 6fa14f0

Please sign in to comment.