about summary refs log tree commit diff
path: root/library/stdarch/examples
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/examples
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/examples')
-rw-r--r--library/stdarch/examples/connect5.rs5
-rw-r--r--library/stdarch/examples/hex.rs5
2 files changed, 8 insertions, 2 deletions
diff --git a/library/stdarch/examples/connect5.rs b/library/stdarch/examples/connect5.rs
index 53e9b8124de..a569689fad3 100644
--- a/library/stdarch/examples/connect5.rs
+++ b/library/stdarch/examples/connect5.rs
@@ -28,9 +28,10 @@
 //! You should see a game self-playing. In the end of the game, it shows the average time for
 //! each move.
 
+#![allow(internal_features)]
 #![feature(avx512_target_feature)]
-#![cfg_attr(target_arch = "x86", feature(stdarch_x86_avx512))]
-#![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_avx512))]
+#![cfg_attr(target_arch = "x86", feature(stdarch_x86_avx512, stdarch_internal))]
+#![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_avx512, stdarch_internal))]
 #![feature(stmt_expr_attributes)]
 
 use rand::seq::SliceRandom;
diff --git a/library/stdarch/examples/hex.rs b/library/stdarch/examples/hex.rs
index 490556e8bf7..b73a306f5fe 100644
--- a/library/stdarch/examples/hex.rs
+++ b/library/stdarch/examples/hex.rs
@@ -12,8 +12,13 @@
 //!
 //! and you should see `746573740a` get printed out.
 
+#![allow(internal_features)]
 #![feature(wasm_target_feature)]
 #![cfg_attr(test, feature(test))]
+#![cfg_attr(
+    any(target_arch = "x86", target_arch = "x86_64"),
+    feature(stdarch_internal)
+)]
 #![allow(
     clippy::unwrap_used,
     clippy::print_stdout,