Skip to content

Commit e4f9db7

Browse files
committed
core: fix unused_macro warning
when compiling the crate for a target with max-atomic-width = 0 fixes #42097
1 parent b21577e commit e4f9db7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/sync/atomic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,7 @@ impl<T> AtomicPtr<T> {
918918
}
919919
}
920920

921+
#[cfg(target_has_atomic = "ptr")]
921922
macro_rules! atomic_int {
922923
($stable:meta,
923924
$stable_cxchg:meta,

0 commit comments

Comments
 (0)