Skip to content

Commit

Permalink
Added #[repr(transparent)] to core::cmp::Reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
imbrem committed Feb 8, 2021
1 parent 0b96f60 commit f847ff1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 579,7 @@ impl Ordering {
/// ```
#[derive(PartialEq, Eq, Debug, Copy, Clone, Default, Hash)]
#[stable(feature = "reverse_cmp_key", since = "1.19.0")]
#[repr(transparent)]
pub struct Reverse<T>(#[stable(feature = "reverse_cmp_key", since = "1.19.0")] pub T);

#[stable(feature = "reverse_cmp_key", since = "1.19.0")]
Expand Down

0 comments on commit f847ff1

Please sign in to comment.