From 516afd557c521eae3a64882b93d32772f3e2fa45 Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Thu, 6 Feb 2025 20:08:29 +0000 Subject: Implement and use BikeshedGuaranteedNoDrop for union/unsafe field validity --- compiler/rustc_codegen_gcc/example/mini_core.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/rustc_codegen_gcc/example') diff --git a/compiler/rustc_codegen_gcc/example/mini_core.rs b/compiler/rustc_codegen_gcc/example/mini_core.rs index 5a4ee0a198c..2ff1d757fd4 100644 --- a/compiler/rustc_codegen_gcc/example/mini_core.rs +++ b/compiler/rustc_codegen_gcc/example/mini_core.rs @@ -54,6 +54,9 @@ impl LegacyReceiver for Box {} #[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 {} -- cgit 1.4.1-3-g733a5