about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect/tests
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2024-01-04 14:35:45 +0000
committerAmanieu d'Antras <amanieu@gmail.com>2024-01-05 11:14:38 +0000
commit76d52cdd6831a092739234cfc0d133ed072a02a4 (patch)
treee84cabf157a2493177285669ae227528e6be3882 /library/stdarch/crates/std_detect/tests
parentfd973c2765a0de864e3b83bf6cd2af6dc3db025d (diff)
downloadrust-76d52cdd6831a092739234cfc0d133ed072a02a4.tar.gz
rust-76d52cdd6831a092739234cfc0d133ed072a02a4.zip
Fix std_detect not being an unstable crate
More fallout from #1486
Diffstat (limited to 'library/stdarch/crates/std_detect/tests')
-rw-r--r--library/stdarch/crates/std_detect/tests/macro_trailing_commas.rs12
-rw-r--r--library/stdarch/crates/std_detect/tests/x86-specific.rs2
2 files changed, 14 insertions, 0 deletions
diff --git a/library/stdarch/crates/std_detect/tests/macro_trailing_commas.rs b/library/stdarch/crates/std_detect/tests/macro_trailing_commas.rs
index 8304b225f53..d37629ec0a4 100644
--- a/library/stdarch/crates/std_detect/tests/macro_trailing_commas.rs
+++ b/library/stdarch/crates/std_detect/tests/macro_trailing_commas.rs
@@ -1,3 +1,15 @@
+#![allow(internal_features)]
+#![cfg_attr(
+    any(
+        target_arch = "arm",
+        target_arch = "aarch64",
+        target_arch = "x86",
+        target_arch = "x86_64",
+        target_arch = "powerpc",
+        target_arch = "powerpc64"
+    ),
+    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))]
diff --git a/library/stdarch/crates/std_detect/tests/x86-specific.rs b/library/stdarch/crates/std_detect/tests/x86-specific.rs
index 54bcab7b1ec..1d8d8ba2ecc 100644
--- a/library/stdarch/crates/std_detect/tests/x86-specific.rs
+++ b/library/stdarch/crates/std_detect/tests/x86-specific.rs
@@ -1,4 +1,6 @@
 #![cfg(any(target_arch = "x86", target_arch = "x86_64"))]
+#![allow(internal_features)]
+#![feature(stdarch_internal)]
 
 extern crate cupid;
 #[macro_use]