Auto merge of #86204 - alexcrichton:wasm-simd-stable, r=Amanieu

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:
bors 2021-06-11 05:02:41 +00:00
commit 68aa6b2d83
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

@ -166,6 +166,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 {