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
This commit is contained in:
Alex Crichton 2021-06-10 07:11:23 -07:00
parent 0279cb11ed
commit e05bb26d9f
5 changed files with 3 additions and 6 deletions

View file

@ -205,7 +205,7 @@ const RISCV_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
];
const WASM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
("simd128", Some(sym::wasm_target_feature)),
("simd128", None),
("atomics", Some(sym::wasm_target_feature)),
("nontrapping-fptoint", Some(sym::wasm_target_feature)),
];

View file

@ -165,6 +165,7 @@
#![feature(no_niche)] // rust-lang/rust#68303
#![feature(no_coverage)] // rust-lang/rust#84605
#![feature(int_error_matching)]
#![cfg_attr(bootstrap, feature(target_feature_11))]
#![deny(unsafe_op_in_unsafe_fn)]
#![deny(or_patterns_back_compat)]

@ -1 +1 @@
Subproject commit 37d6e1886369ea0176356286dc7fbd42ee5aa79c
Subproject commit 1e05dffbeeb80ba61bf59cc63b222d538d7825ed

View file

@ -1,7 +1,5 @@
// check-pass
#![feature(wasm_target_feature)]
#[cfg(any(target_arch = "wasm32", doc))]
#[target_feature(enable = "simd128")]
pub fn foo() {}

View file

@ -1,7 +1,5 @@
// build-pass
#![cfg_attr(target_arch = "wasm32", feature(wasm_simd, wasm_target_feature))]
#[cfg(target_arch = "wasm32")]
fn main() {
unsafe {