Skip to content

Commit 950e426

Browse files
Rollup merge of #42098 - japaric:gh42097, r=Mark-Simulacrum
core: fix unused_macro warning when compiling the crate for a target with max-atomic-width = 0 fixes #42097
2 parents 2dc1559 + e4f9db7 commit 950e426

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/sync/atomic.rs

+1
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)