about summary refs log tree commit diff
path: root/tests/codegen/wasm_exceptions.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-02-25 18:51:22 +0100
committerRalf Jung <post@ralfj.de>2024-02-26 11:10:18 +0100
commitb4ca582b8986c36d23726dc292c41b06fe7f9c6b (patch)
treec20176a516e3ac88eb7e65b6c9a03d4721edc2ca /tests/codegen/wasm_exceptions.rs
parente9f95949138125bb1b98ed213a41b9aa825bacf5 (diff)
downloadrust-b4ca582b8986c36d23726dc292c41b06fe7f9c6b.tar.gz
rust-b4ca582b8986c36d23726dc292c41b06fe7f9c6b.zip
rename 'try' intrinsic to 'catch_unwind'
Diffstat (limited to 'tests/codegen/wasm_exceptions.rs')
-rw-r--r--tests/codegen/wasm_exceptions.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/wasm_exceptions.rs b/tests/codegen/wasm_exceptions.rs
index 48a7357bfd8..66d2bbed709 100644
--- a/tests/codegen/wasm_exceptions.rs
+++ b/tests/codegen/wasm_exceptions.rs
@@ -35,7 +35,7 @@ pub fn test_cleanup() {
 #[no_mangle]
 pub fn test_rtry() {
     unsafe {
-        core::intrinsics::r#try(|_| {
+        core::intrinsics::catch_unwind(|_| {
             may_panic();
         }, core::ptr::null_mut(), |data, exception| {
             log_number(data as usize);