Skip to content

Commit c05af65

Browse files
committed
Cleanup last uses of the stdsimd feature
1 parent 56a7256 commit c05af65

File tree

11 files changed

+8
-11
lines changed

11 files changed

+8
-11
lines changed

Diff for: crates/core_arch/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ The `core::arch` module implements architecture-dependent intrinsics (e.g. SIMD)
77

88
`core::arch` is available as part of `libcore` and it is re-exported by
99
`libstd`. Prefer using it via `core::arch` or `std::arch` than via this crate.
10-
Unstable features are often available in nightly Rust via the
11-
`feature(stdsimd)`.
1210

1311
Using `core::arch` via this crate requires nightly Rust, and it can (and does)
1412
break often. The only cases in which you should consider using it via this crate

Diff for: crates/intrinsic-test/src/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ fn generate_rust_program(notices: &str, intrinsic: &Intrinsic, a32: bool) -> Str
166166
format!(
167167
r#"{notices}#![feature(simd_ffi)]
168168
#![feature(link_llvm_intrinsics)]
169-
#![feature(stdsimd)]
170169
#![allow(overflowing_literals)]
171170
#![allow(non_upper_case_globals)]
172171
use core_arch::arch::{target_arch}::*;

Diff for: crates/std_detect/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ supports certain features, like SIMD instructions.
99

1010
`std::detect` APIs are available as part of `libstd`. Prefer using it via the
1111
standard library than through this crate. Unstable features of `std::detect` are
12-
available on nightly Rust behind the `feature(stdsimd)` feature-gate.
12+
available on nightly Rust behind various feature-gates.
1313

1414
If you need run-time feature detection in `#[no_std]` environments, Rust `core`
1515
library cannot help you. By design, Rust `core` is platform independent, but

Diff for: crates/std_detect/src/detect/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ macro_rules! features {
2626
) => {
2727
#[macro_export]
2828
$(#[$macro_attrs])*
29-
#[allow_internal_unstable(stdarch_internal, stdsimd)]
29+
#[allow_internal_unstable(stdarch_internal)]
3030
#[cfg($cfg)]
3131
#[doc(cfg($cfg))]
3232
macro_rules! $macro_name {

Diff for: crates/std_detect/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#![cfg_attr(test, allow(unused_imports))]
2121
#![no_std]
2222
#![allow(internal_features)]
23+
// Temporary hack: needed to build against toolchains from before the mass feature renaming.
24+
#![feature(stdsimd)]
2325

2426
#[cfg(test)]
2527
#[macro_use]

Diff for: crates/std_detect/tests/cpu-detection.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(stdsimd)]
1+
#![feature(stdarch_internal, stdarch_arm_feature_detection)]
22
#![allow(clippy::unwrap_used, clippy::use_debug, clippy::print_stdout)]
33
#![cfg(any(
44
target_arch = "arm",

Diff for: crates/std_detect/tests/macro_trailing_commas.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(stdsimd)]
1+
#![feature(stdarch_arm_feature_detection)]
22
#![allow(clippy::unwrap_used, clippy::use_debug, clippy::print_stdout)]
33

44
#[cfg(any(

Diff for: crates/std_detect/tests/x86-specific.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(stdsimd)]
21
#![cfg(any(target_arch = "x86", target_arch = "x86_64"))]
32

43
extern crate cupid;

Diff for: examples/connect5.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
//! You should see a game self-playing. In the end of the game, it shows the average time for
2929
//! each move.
3030
31-
#![feature(stdsimd, avx512_target_feature)]
31+
#![feature(avx512_target_feature, stdarch_x86_avx512)]
3232
#![feature(stmt_expr_attributes)]
3333

3434
use rand::seq::SliceRandom;

Diff for: examples/hex.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//!
1313
//! and you should see `746573740a` get printed out.
1414
15-
#![feature(stdsimd, wasm_target_feature)]
15+
#![feature(wasm_target_feature)]
1616
#![cfg_attr(test, feature(test))]
1717
#![allow(
1818
clippy::unwrap_used,

Diff for: examples/wasm.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! A simple slab allocator for pages in wasm
22
3-
#![feature(stdsimd)]
43
#![cfg(target_arch = "wasm32")]
54

65
use std::ptr;

0 commit comments

Comments
 (0)