about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-09-13 18:34:27 +0200
committerMara Bos <m-ou.se@m-ou.se>2020-09-13 18:34:27 +0200
commit9914c3beed0f4a829e78eafb36bac39d418b71f5 (patch)
treed0eac233c9129459b89d2159f96cdd2010da5a38
parent3be40b22c83491e4a4d34e2ad06aa81b804b9fad (diff)
downloadrust-9914c3beed0f4a829e78eafb36bac39d418b71f5.tar.gz
rust-9914c3beed0f4a829e78eafb36bac39d418b71f5.zip
Supress unused_macros error on architectures with no atomics.
-rw-r--r--library/core/src/sync/atomic.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs
index 920a82f5af4..9d74f537491 100644
--- a/library/core/src/sync/atomic.rs
+++ b/library/core/src/sync/atomic.rs
@@ -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)*) => { "" };