about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-04-22 16:57:07 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-04-22 16:57:07 +0000
commit8bf1687879dded8a91b844bac2ff66cd5609d024 (patch)
tree28334f572fdbd8b299010a906fc078d2b06fa48c
parentd0c51412572b3b7adc4896224a745c01fe53f4ed (diff)
downloadrust-8bf1687879dded8a91b844bac2ff66cd5609d024.tar.gz
rust-8bf1687879dded8a91b844bac2ff66cd5609d024.zip
Fix neon test on non arm64 targets
-rw-r--r--example/neon.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/neon.rs b/example/neon.rs
index bad26947967..00e437d7e54 100644
--- a/example/neon.rs
+++ b/example/neon.rs
@@ -4,7 +4,9 @@
 
 #[cfg(target_arch = "aarch64")]
 use std::arch::aarch64::*;
+#[cfg(target_arch = "aarch64")]
 use std::mem::transmute;
+#[cfg(target_arch = "aarch64")]
 use std::simd::*;
 
 #[cfg(target_arch = "aarch64")]