Skip to content

Commit

Permalink
repr(transparent)
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Aug 9, 2018
1 parent d865adc commit 5ee5a7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/mem.rs
Expand Up @@ -956,6 +956,7 @@ pub fn discriminant<T>(v: &T) -> Discriminant<T> {
#[stable(feature = "manually_drop", since = "1.20.0")]
#[lang = "manually_drop"]
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(transparent)]
pub struct ManuallyDrop<T: ?Sized> {
value: T,
}
Expand Down

0 comments on commit 5ee5a7e

Please sign in to comment.