From 5431d5b58e985e50945f4828317ea6d44bb771bf Mon Sep 17 00:00:00 2001 From: Andre Bogus Date: Thu, 13 Jan 2022 23:32:49 +0100 Subject: [PATCH] Add rustc_diagnostic_item attribute to AtomicBool --- library/core/src/sync/atomic.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index 27243d8ca7030..792016902aebe 100644 --- a/library/core/src/sync/atomic.rs +++ b/library/core/src/sync/atomic.rs @@ -131,6 +131,7 @@ use crate::hint::spin_loop; /// loads and stores of `u8`. #[cfg(target_has_atomic_load_store = "8")] #[stable(feature = "rust1", since = "1.0.0")] +#[rustc_diagnostic_item = "AtomicBool"] #[repr(C, align(1))] pub struct AtomicBool { v: UnsafeCell,