We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 323b7a0 commit 282f522Copy full SHA for 282f522
compiler/rustc_target/src/target_features.rs
@@ -773,9 +773,9 @@ static RISCV_FEATURES: &[(&str, Stability, ImpliedFeatures, TargetModifier)] = &
773
774
static WASM_FEATURES: &[(&str, Stability, ImpliedFeatures, TargetModifier)] = &[
775
// tidy-alphabetical-start
776
- ("atomics", Unstable(sym::wasm_target_feature), &[], false),
+ ("atomics", Unstable(sym::wasm_target_feature), &[], true),
777
("bulk-memory", Stable, &[], false),
778
- ("exception-handling", Unstable(sym::wasm_target_feature), &[], false),
+ ("exception-handling", Unstable(sym::wasm_target_feature), &[], true),
779
("extended-const", Stable, &[], false),
780
("multivalue", Stable, &[], false),
781
("mutable-globals", Stable, &[], false),
src/tools/tidy/src/style.rs
@@ -215,7 +215,7 @@ fn should_ignore(line: &str) -> bool {
215
// For `ui_test`-style UI test directives, also ignore
216
// - `//@[rev] compile-flags`
217
// - `//@[rev] normalize-stderr`
218
- || static_regex!("\\s*//@(\\[.*\\]) (compile-flags|normalize-stderr|error-pattern).*")
+ || static_regex!("\\s*//@ *(\\[.*\\]) (compile-flags|normalize-stderr|error-pattern).*")
219
.is_match(line)
220
// Matching for rustdoc tests commands.
221
// It allows to prevent them emitting warnings like `line longer than 100 chars`.
tests/assembly-llvm/wasm_exceptions.rs
@@ -1,6 +1,6 @@
1
//@ only-wasm32
2
//@ assembly-output: emit-asm
3
-//@ compile-flags: -C target-feature=+exception-handling
+//@ compile-flags: -C target-feature=+exception-handling -C unsafe-allow-abi-mismatch=target-feature
4
//@ compile-flags: -C panic=unwind
5
6
#![crate_type = "lib"]
tests/codegen-llvm/unwind-abis/c-unwind-abi-panic-abort.rs
@@ -3,7 +3,7 @@
//@ [NONWASM] ignore-wasm32
//@ [WASM] only-wasm32
//@ [WASMEXN] only-wasm32
-//@ [WASMEXN] compile-flags: -Ctarget-feature=+exception-handling
+//@ [WASMEXN] compile-flags: -Ctarget-feature=+exception-handling -C unsafe-allow-abi-mismatch=target-feature
7
8
// Test that `nounwind` attributes are also applied to extern `C-unwind` Rust functions
9
// when the code is compiled with `panic=abort`.
tests/codegen-llvm/unwind-and-panic-abort.rs
tests/run-make/wasm-exceptions-nostd/rmake.rs
@@ -12,6 +12,7 @@ fn main() {
12
.panic("unwind")
13
.arg("-Cllvm-args=-wasm-enable-eh")
14
.arg("-Ctarget-feature=+exception-handling")
15
+ .arg("-Cunsafe-allow-abi-mismatch=target-feature")
16
.run();
17
18
cmd(&env_var("NODE")).arg("verify.mjs").arg("lib.wasm").run();
0 commit comments