Skip to content

Commit 5ee5a7e

Browse files
committed
repr(transparent)
1 parent d865adc commit 5ee5a7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/mem.rs

+1
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,7 @@ pub fn discriminant<T>(v: &T) -> Discriminant<T> {
956956
#[stable(feature = "manually_drop", since = "1.20.0")]
957957
#[lang = "manually_drop"]
958958
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
959+
#[repr(transparent)]
959960
pub struct ManuallyDrop<T: ?Sized> {
960961
value: T,
961962
}

0 commit comments

Comments
 (0)