Skip to content

Commit e05bb26

Browse files
committed
std: Stabilize wasm simd intrinsics
This commit performs two changes to stabilize Rust support for WebAssembly simd intrinsics: * The stdarch submodule is updated to pull in rust-lang/stdarch#1179. * The `wasm_target_feature` feature gate requirement for the `simd128` feature has been removed, stabilizing the name `simd128`. This should conclude the FCP started on #74372 and... Closes #74372
1 parent 0279cb1 commit e05bb26

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

compiler/rustc_codegen_ssa/src/target_features.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const RISCV_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
205205
];
206206

207207
const WASM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
208-
("simd128", Some(sym::wasm_target_feature)),
208+
("simd128", None),
209209
("atomics", Some(sym::wasm_target_feature)),
210210
("nontrapping-fptoint", Some(sym::wasm_target_feature)),
211211
];

library/core/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@
165165
#![feature(no_niche)] // rust-lang/rust#68303
166166
#![feature(no_coverage)] // rust-lang/rust#84605
167167
#![feature(int_error_matching)]
168+
#![cfg_attr(bootstrap, feature(target_feature_11))]
168169
#![deny(unsafe_op_in_unsafe_fn)]
169170
#![deny(or_patterns_back_compat)]
170171

src/test/rustdoc-ui/wasm-safe.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// check-pass
22

3-
#![feature(wasm_target_feature)]
4-
53
#[cfg(any(target_arch = "wasm32", doc))]
64
#[target_feature(enable = "simd128")]
75
pub fn foo() {}

src/test/ui/simd/wasm-simd-indirect.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// build-pass
22

3-
#![cfg_attr(target_arch = "wasm32", feature(wasm_simd, wasm_target_feature))]
4-
53
#[cfg(target_arch = "wasm32")]
64
fn main() {
75
unsafe {

0 commit comments

Comments
 (0)