about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/example
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-02-06 20:08:29 +0000
committerMichael Goulet <michael@errs.io>2025-02-13 03:45:04 +0000
commit516afd557c521eae3a64882b93d32772f3e2fa45 (patch)
treec102e77323e1271ca98ac99d12978a7e1a8a1198 /compiler/rustc_codegen_cranelift/example
parentc72d443cddc78ce239d3a7abc57864bf617bdf2d (diff)
downloadrust-516afd557c521eae3a64882b93d32772f3e2fa45.tar.gz
rust-516afd557c521eae3a64882b93d32772f3e2fa45.zip
Implement and use BikeshedGuaranteedNoDrop for union/unsafe field validity
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example')
-rw-r--r--compiler/rustc_codegen_cranelift/example/mini_core.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/example/mini_core.rs b/compiler/rustc_codegen_cranelift/example/mini_core.rs
index a0a381638c0..79820232496 100644
--- a/compiler/rustc_codegen_cranelift/example/mini_core.rs
+++ b/compiler/rustc_codegen_cranelift/example/mini_core.rs
@@ -57,6 +57,9 @@ impl<T: ?Sized> LegacyReceiver for Box<T> {}
 #[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 {}