diff --git a/compiler/rustc_target/src/target_features.rs b/compiler/rustc_target/src/target_features.rs index f1dd2d8191985..93d48d8341ccb 100644 --- a/compiler/rustc_target/src/target_features.rs +++ b/compiler/rustc_target/src/target_features.rs @@ -845,7 +845,7 @@ static WASM_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[ ("sign-ext", Stable, &[]), ("simd128", Stable, &[]), ("tail-call", Stable, &[]), - ("wide-arithmetic", Unstable(sym::wasm_target_feature), &[]), + ("wide-arithmetic", Stable, &[]), // tidy-alphabetical-end ]; diff --git a/src/doc/rustc/src/platform-support/wasm32v1-none.md b/src/doc/rustc/src/platform-support/wasm32v1-none.md index d2f9b3a1f9760..b7224e85ca19a 100644 --- a/src/doc/rustc/src/platform-support/wasm32v1-none.md +++ b/src/doc/rustc/src/platform-support/wasm32v1-none.md @@ -64,6 +64,8 @@ For reference sake, the set of proposals that LLVM supports at the time of writi * [Multiple memories]- `+multimemory` * [Relaxed SIMD] - `+relaxed-simd` * [Tail call] - `+tail-call` +* Post-3.0 proposals: + * [Wide Arithmetic] - `+wide-arithmetic` [Bulk memory]: https://github.com/WebAssembly/spec/blob/main/proposals/bulk-memory-operations/Overview.md [Sign-extending operations]: https://github.com/WebAssembly/spec/blob/main/proposals/sign-extension-ops/Overview.md @@ -78,6 +80,7 @@ For reference sake, the set of proposals that LLVM supports at the time of writi [Multiple memories]: https://github.com/WebAssembly/multi-memory [Relaxed SIMD]: https://github.com/WebAssembly/relaxed-simd [Tail call]: https://github.com/WebAssembly/tail-call +[Wide Arithmetic]: https://github.com/WebAssembly/wide-arithmetic Additional proposals in the future are, of course, also not enabled by default. diff --git a/tests/ui/wasm/wasm-stable-target-features.rs b/tests/ui/wasm/wasm-stable-target-features.rs index b6d4b67d0703f..4ea8810ed308b 100644 --- a/tests/ui/wasm/wasm-stable-target-features.rs +++ b/tests/ui/wasm/wasm-stable-target-features.rs @@ -35,6 +35,9 @@ fn foo9() {} #[target_feature(enable = "tail-call")] fn foo10() {} +#[target_feature(enable = "wide-arithmetic")] +fn foo11() {} + fn main() { foo1(); foo2(); @@ -46,4 +49,5 @@ fn main() { foo8(); foo9(); foo10(); + foo11(); }