Skip to content

Commit 5431d5b

Browse files
committed
Add rustc_diagnostic_item attribute to AtomicBool
1 parent 22e491a commit 5431d5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/sync/atomic.rs

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ use crate::hint::spin_loop;
131131
/// loads and stores of `u8`.
132132
#[cfg(target_has_atomic_load_store = "8")]
133133
#[stable(feature = "rust1", since = "1.0.0")]
134+
#[rustc_diagnostic_item = "AtomicBool"]
134135
#[repr(C, align(1))]
135136
pub struct AtomicBool {
136137
v: UnsafeCell<u8>,

0 commit comments

Comments
 (0)