Skip to content

Commit 9914c3b

Browse files
committed
Supress unused_macros error on architectures with no atomics.
1 parent 3be40b2 commit 9914c3b

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
@@ -1150,6 +1150,7 @@ impl<T> From<*mut T> for AtomicPtr<T> {
11501150
}
11511151
}
11521152

1153+
#[allow(unused_macros)] // This macro ends up being unused on some architectures.
11531154
macro_rules! if_not_8_bit {
11541155
(u8, $($tt:tt)*) => { "" };
11551156
(i8, $($tt:tt)*) => { "" };

0 commit comments

Comments
 (0)