Added #[repr(transparent)] to core::cmp::Reverse

This commit is contained in:
Jad Ghalayini 2021-02-08 12:07:59 +00:00
parent 0b96f60c07
commit f847ff1511

View File

@ -579,6 +579,7 @@ pub fn then_with<F: FnOnce() -> Ordering>(self, f: F) -> 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")]