Implement and use BikeshedGuaranteedNoDrop for union/unsafe field validity
This commit is contained in:
parent
c72d443cdd
commit
516afd557c
21 changed files with 365 additions and 66 deletions
|
@ -54,6 +54,9 @@ impl<T: ?Sized, A: Allocator> LegacyReceiver for Box<T, A> {}
|
|||
#[lang = "copy"]
|
||||
pub trait Copy {}
|
||||
|
||||
#[lang = "bikeshed_guaranteed_no_drop"]
|
||||
pub trait BikeshedGuaranteedNoDrop {}
|
||||
|
||||
impl Copy for bool {}
|
||||
impl Copy for u8 {}
|
||||
impl Copy for u16 {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue