about summary refs log tree commit diff
path: root/library/stdarch/examples
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2023-10-26 18:11:28 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2023-10-29 20:39:50 +0100
commitb8ba57f310aaf3e5a02637f31735e93cb221c907 (patch)
treeaf695152835d3f376d8a8ad4503db7cd9f2c3628 /library/stdarch/examples
parent941d609570675ecf4ab8566871d0d005e76c650d (diff)
downloadrust-b8ba57f310aaf3e5a02637f31735e93cb221c907.tar.gz
rust-b8ba57f310aaf3e5a02637f31735e93cb221c907.zip
Cleanup last uses of the stdsimd feature
Diffstat (limited to 'library/stdarch/examples')
-rw-r--r--library/stdarch/examples/connect5.rs2
-rw-r--r--library/stdarch/examples/hex.rs2
-rw-r--r--library/stdarch/examples/wasm.rs1
3 files changed, 2 insertions, 3 deletions
diff --git a/library/stdarch/examples/connect5.rs b/library/stdarch/examples/connect5.rs
index 805108c24ce..6298255421a 100644
--- a/library/stdarch/examples/connect5.rs
+++ b/library/stdarch/examples/connect5.rs
@@ -28,7 +28,7 @@
 //! You should see a game self-playing. In the end of the game, it shows the average time for
 //! each move.
 
-#![feature(stdsimd, avx512_target_feature)]
+#![feature(avx512_target_feature, stdarch_x86_avx512)]
 #![feature(stmt_expr_attributes)]
 
 use rand::seq::SliceRandom;
diff --git a/library/stdarch/examples/hex.rs b/library/stdarch/examples/hex.rs
index a961793a045..490556e8bf7 100644
--- a/library/stdarch/examples/hex.rs
+++ b/library/stdarch/examples/hex.rs
@@ -12,7 +12,7 @@
 //!
 //! and you should see `746573740a` get printed out.
 
-#![feature(stdsimd, wasm_target_feature)]
+#![feature(wasm_target_feature)]
 #![cfg_attr(test, feature(test))]
 #![allow(
     clippy::unwrap_used,
diff --git a/library/stdarch/examples/wasm.rs b/library/stdarch/examples/wasm.rs
index 6b92ae9b87d..8a95ed54e14 100644
--- a/library/stdarch/examples/wasm.rs
+++ b/library/stdarch/examples/wasm.rs
@@ -1,6 +1,5 @@
 //! A simple slab allocator for pages in wasm
 
-#![feature(stdsimd)]
 #![cfg(target_arch = "wasm32")]
 
 use std::ptr;