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.
This commit is contained in:
Matthias Krüger 2022-01-18 04:42:04 +01:00 committed by GitHub
commit 6a5663ed82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>,