Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/rustc_target/src/target_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
];

Expand Down
3 changes: 3 additions & 0 deletions src/doc/rustc/src/platform-support/wasm32v1-none.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.

Expand Down
4 changes: 4 additions & 0 deletions tests/ui/wasm/wasm-stable-target-features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ fn foo9() {}
#[target_feature(enable = "tail-call")]
fn foo10() {}

#[target_feature(enable = "wide-arithmetic")]
fn foo11() {}

fn main() {
foo1();
foo2();
Expand All @@ -46,4 +49,5 @@ fn main() {
foo8();
foo9();
foo10();
foo11();
}
Loading