diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-18 04:42:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-18 04:42:04 +0100 |
| commit | 6a5663ed822f81e1c3c9b18a28358b1aed22db13 (patch) | |
| tree | 6fde193d83e1ea7f310dcfd37216e3318fc36ffc | |
| parent | ae8f39e4d467c4f9d21539070b7f82914f48eaa3 (diff) | |
| parent | 5431d5b58e985e50945f4828317ea6d44bb771bf (diff) | |
| download | rust-6a5663ed822f81e1c3c9b18a28358b1aed22db13.tar.gz rust-6a5663ed822f81e1c3c9b18a28358b1aed22db13.zip | |
Rollup merge of #92870 - llogiq:atomic_bool_sym, r=Manishearth
add `rustc_diagnostic_item` attribute to `AtomicBool` type I wanted to use this in clippy and found that it didn't work. So hopefully this addition will fix it.
| -rw-r--r-- | library/core/src/sync/atomic.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index 27243d8ca70..792016902ae 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<u8>, |
