Skip to content

Commit

Permalink
Supress unused_macros error on architectures with no atomics.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Sep 13, 2020
1 parent 3be40b2 commit 9914c3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/sync/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,7 @@ impl<T> From<*mut T> for AtomicPtr<T> {
}
}

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

0 comments on commit 9914c3b

Please sign in to comment.