Skip to content

Commit f847ff1

Browse files
committed
Added #[repr(transparent)] to core::cmp::Reverse
1 parent 0b96f60 commit f847ff1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/cmp.rs

+1
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ impl Ordering {
579579
/// ```
580580
#[derive(PartialEq, Eq, Debug, Copy, Clone, Default, Hash)]
581581
#[stable(feature = "reverse_cmp_key", since = "1.19.0")]
582+
#[repr(transparent)]
582583
pub struct Reverse<T>(#[stable(feature = "reverse_cmp_key", since = "1.19.0")] pub T);
583584

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

0 commit comments

Comments
 (0)