Skip to content

Commit c6ddd33

Browse files
Implement and use BikeshedGuaranteedNoDrop for union/unsafe field validity
1 parent 159080c commit c6ddd33

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

example/mini_core.rs

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ impl<T: ?Sized> LegacyReceiver for Box<T> {}
5757
#[lang = "copy"]
5858
pub trait Copy {}
5959

60+
#[lang = "bikeshed_guaranteed_no_drop"]
61+
pub trait BikeshedGuaranteedNoDrop {}
62+
6063
impl Copy for bool {}
6164
impl Copy for u8 {}
6265
impl Copy for u16 {}

0 commit comments

Comments
 (0)