Skip to content

Commit feb78f9

Browse files
Implement and use BikeshedGuaranteedNoDrop for union/unsafe field validity
1 parent 65da92e commit feb78f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: example/mini_core.rs

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ impl<T: ?Sized, A: Allocator> LegacyReceiver for Box<T, A> {}
5454
#[lang = "copy"]
5555
pub trait Copy {}
5656

57+
#[lang = "bikeshed_guaranteed_no_drop"]
58+
pub trait BikeshedGuaranteedNoDrop {}
59+
5760
impl Copy for bool {}
5861
impl Copy for u8 {}
5962
impl Copy for u16 {}

0 commit comments

Comments
 (0)