Skip to content

Commit

Permalink
Add rustc_diagnostic_item attribute to AtomicBool
Browse files Browse the repository at this point in the history
  • Loading branch information
llogiq committed Jan 13, 2022
1 parent 22e491a commit 5431d5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/sync/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8>,
Expand Down

0 comments on commit 5431d5b

Please sign in to comment.