]> git.lizzy.rs Git - rust.git/commitdiff
Fix cfg warnings in libcoretest
authorMichael Gehring <mg@ebfe.org>
Sat, 11 Oct 2014 16:32:40 +0000 (18:32 +0200)
committerMichael Gehring <mg@ebfe.org>
Sat, 11 Oct 2014 16:33:17 +0000 (18:33 +0200)
src/libcoretest/mem.rs

index fde640158f51e09c9a9c269cd99274638cb62009..76409c8612f3316e28725eaa9f90b6efb5a86860 100644 (file)
@@ -19,10 +19,10 @@ fn size_of_basic() {
 }
 
 #[test]
-#[cfg(target_arch = "x86")]
-#[cfg(target_arch = "arm")]
-#[cfg(target_arch = "mips")]
-#[cfg(target_arch = "mipsel")]
+#[cfg(any(target_arch = "x86",
+          target_arch = "arm",
+          target_arch = "mips",
+          target_arch = "mipsel"))]
 fn size_of_32() {
     assert_eq!(size_of::<uint>(), 4u);
     assert_eq!(size_of::<*const uint>(), 4u);
@@ -51,10 +51,10 @@ fn align_of_basic() {
 }
 
 #[test]
-#[cfg(target_arch = "x86")]
-#[cfg(target_arch = "arm")]
-#[cfg(target_arch = "mips")]
-#[cfg(target_arch = "mipsel")]
+#[cfg(any(target_arch = "x86",
+          target_arch = "arm",
+          target_arch = "mips",
+          target_arch = "mipsel"))]
 fn align_of_32() {
     assert_eq!(align_of::<uint>(), 4u);
     assert_eq!(align_of::<*const uint>(), 4u);