about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2024-06-19 20:06:56 +0100
committerGary Guo <gary@garyguo.net>2024-06-19 21:26:48 +0100
commitbb2716effde9713efad15c269b35779a79c90271 (patch)
treea67a9d46f6df541a4c16fcacaa3613b501804d87
parent4c4d62d74fdb7da78e8b2bab5b23c3ba6d4ec505 (diff)
downloadrust-bb2716effde9713efad15c269b35779a79c90271.tar.gz
rust-bb2716effde9713efad15c269b35779a79c90271.zip
Fix wasm_exceptions test
-rw-r--r--tests/assembly/wasm_exceptions.rs6
-rw-r--r--tests/codegen/wasm_exceptions.rs6
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/assembly/wasm_exceptions.rs b/tests/assembly/wasm_exceptions.rs
index 7bdf7f1287c..f05ccfadc58 100644
--- a/tests/assembly/wasm_exceptions.rs
+++ b/tests/assembly/wasm_exceptions.rs
@@ -6,12 +6,12 @@
 
 #![crate_type = "lib"]
 #![feature(core_intrinsics)]
-#![feature(rustc_attrs)]
 
-extern "C" {
+extern "C-unwind" {
     fn may_panic();
+}
 
-    #[rustc_nounwind]
+extern "C" {
     fn log_number(number: usize);
 }
 
diff --git a/tests/codegen/wasm_exceptions.rs b/tests/codegen/wasm_exceptions.rs
index 3910850e03a..719499dd8ea 100644
--- a/tests/codegen/wasm_exceptions.rs
+++ b/tests/codegen/wasm_exceptions.rs
@@ -3,12 +3,12 @@
 
 #![crate_type = "lib"]
 #![feature(core_intrinsics)]
-#![feature(rustc_attrs)]
 
-extern "C" {
+extern "C-unwind" {
     fn may_panic();
+}
 
-    #[rustc_nounwind]
+extern "C" {
     fn log_number(number: usize);
 }