Added #[repr(transparent)] to core::cmp::Reverse
This commit is contained in:
parent
0b96f60c07
commit
f847ff1511
@ -579,6 +579,7 @@ pub fn then_with<F: FnOnce() -> Ordering>(self, f: F) -> Ordering {
|
|||||||
/// ```
|
/// ```
|
||||||
#[derive(PartialEq, Eq, Debug, Copy, Clone, Default, Hash)]
|
#[derive(PartialEq, Eq, Debug, Copy, Clone, Default, Hash)]
|
||||||
#[stable(feature = "reverse_cmp_key", since = "1.19.0")]
|
#[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);
|
pub struct Reverse<T>(#[stable(feature = "reverse_cmp_key", since = "1.19.0")] pub T);
|
||||||
|
|
||||||
#[stable(feature = "reverse_cmp_key", since = "1.19.0")]
|
#[stable(feature = "reverse_cmp_key", since = "1.19.0")]
|
||||||
|
Loading…
Reference in New Issue
Block a user