about summary refs log tree commit diff
path: root/src/libstd/tests/run-time-detect.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/tests/run-time-detect.rs')
-rw-r--r--src/libstd/tests/run-time-detect.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/libstd/tests/run-time-detect.rs b/src/libstd/tests/run-time-detect.rs
index eacce1e5682..e39cc1eed5e 100644
--- a/src/libstd/tests/run-time-detect.rs
+++ b/src/libstd/tests/run-time-detect.rs
@@ -11,18 +11,14 @@
 )]
 
 #[test]
-#[cfg(all(target_arch = "arm",
-          any(target_os = "linux", target_os = "android")))]
+#[cfg(all(target_arch = "arm", any(target_os = "linux", target_os = "android")))]
 fn arm_linux() {
     println!("neon: {}", is_arm_feature_detected!("neon"));
     println!("pmull: {}", is_arm_feature_detected!("pmull"));
 }
 
 #[test]
-#[cfg(all(
-    target_arch = "aarch64",
-    any(target_os = "linux", target_os = "android")
-))]
+#[cfg(all(target_arch = "aarch64", any(target_os = "linux", target_os = "android")))]
 fn aarch64_linux() {
     println!("fp: {}", is_aarch64_feature_detected!("fp"));
     println!("fp16: {}", is_aarch64_feature_detected!("fp16"));
@@ -81,10 +77,7 @@ fn x86_all() {
     println!("avx512vl {:?}", is_x86_feature_detected!("avx512vl"));
     println!("avx512_ifma {:?}", is_x86_feature_detected!("avx512ifma"));
     println!("avx512_vbmi {:?}", is_x86_feature_detected!("avx512vbmi"));
-    println!(
-        "avx512_vpopcntdq {:?}",
-        is_x86_feature_detected!("avx512vpopcntdq")
-    );
+    println!("avx512_vpopcntdq {:?}", is_x86_feature_detected!("avx512vpopcntdq"));
     println!("fma: {:?}", is_x86_feature_detected!("fma"));
     println!("bmi1: {:?}", is_x86_feature_detected!("bmi1"));
     println!("bmi2: {:?}", is_x86_feature_detected!("bmi2"));