diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-07-04 15:25:28 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-07-22 20:22:16 +0200 |
| commit | ffa97a647e3786add894093aa2cc7561c7c64607 (patch) | |
| tree | 54b5dd7f28de0502263e76274154f4e728ba672e /library/std_detect | |
| parent | e07a1bbb79fc3fb400ac4a2f25bb37cd8a0c245b (diff) | |
| download | rust-ffa97a647e3786add894093aa2cc7561c7c64607.tar.gz rust-ffa97a647e3786add894093aa2cc7561c7c64607.zip | |
Fix warning
Diffstat (limited to 'library/std_detect')
| -rw-r--r-- | library/std_detect/tests/cpu-detection.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/library/std_detect/tests/cpu-detection.rs b/library/std_detect/tests/cpu-detection.rs index 09a73572c1f..5ad32d83237 100644 --- a/library/std_detect/tests/cpu-detection.rs +++ b/library/std_detect/tests/cpu-detection.rs @@ -27,6 +27,16 @@ ), macro_use )] +#[cfg(any( + target_arch = "arm", + target_arch = "aarch64", + target_arch = "arm64ec", + target_arch = "riscv32", + target_arch = "riscv64", + target_arch = "powerpc", + target_arch = "powerpc64", + target_arch = "s390x", +))] extern crate std_detect; #[test] |
