Skip to content

Commit 6a5663e

Browse files
authored
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.
2 parents ae8f39e + 5431d5b commit 6a5663e

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)