Skip to content

Commit

Permalink
Attempt to fix cpu-detection test
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Oct 28, 2023
1 parent a02e351 commit 7cd1afa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
29 changes: 15 additions & 14 deletions crates/std_detect/tests/cpu-detection.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
#![feature(
stdarch_internal,
stdarch_arm_feature_detection,
stdarch_powerpc_feature_detection
)]
#![feature(stdarch_internal)]
#![cfg_attr(target_arch = "arm", feature(stdarch_arm_feature_detection))]
#![cfg_attr(target_arch = "powerpc", feature(stdarch_powerpc_feature_detection))]
#![cfg_attr(target_arch = "powerpc64", feature(stdarch_powerpc_feature_detection))]
#![allow(clippy::unwrap_used, clippy::use_debug, clippy::print_stdout)]
#![cfg(any(
target_arch = "arm",
target_arch = "aarch64",
target_arch = "x86",
target_arch = "x86_64",
target_arch = "powerpc",
target_arch = "powerpc64"
))]

#[macro_use]
#[cfg_attr(
any(
target_arch = "arm",
target_arch = "aarch64",
target_arch = "x86",
target_arch = "x86_64",
target_arch = "powerpc",
target_arch = "powerpc64"
),
macro_use
)]
extern crate std_detect;

#[test]
Expand Down
4 changes: 3 additions & 1 deletion crates/std_detect/tests/macro_trailing_commas.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#![feature(stdarch_arm_feature_detection, stdarch_powerpc_feature_detection)]
#![cfg_attr(target_arch = "arm", feature(stdarch_arm_feature_detection))]
#![cfg_attr(target_arch = "powerpc", feature(stdarch_powerpc_feature_detection))]
#![cfg_attr(target_arch = "powerpc64", feature(stdarch_powerpc_feature_detection))]
#![allow(clippy::unwrap_used, clippy::use_debug, clippy::print_stdout)]

#[cfg(any(
Expand Down
4 changes: 3 additions & 1 deletion examples/connect5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
//! You should see a game self-playing. In the end of the game, it shows the average time for
//! each move.

#![feature(avx512_target_feature, stdarch_x86_avx512)]
#![feature(avx512_target_feature)]
#![cfg_attr(target_arch = "x86", feature(stdarch_x86_avx512))]
#![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_avx512))]
#![feature(stmt_expr_attributes)]

use rand::seq::SliceRandom;
Expand Down

0 comments on commit 7cd1afa

Please sign in to comment.