diff options
| author | Ralf Jung <post@ralfj.de> | 2024-02-25 18:51:22 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-02-26 11:10:18 +0100 |
| commit | b4ca582b8986c36d23726dc292c41b06fe7f9c6b (patch) | |
| tree | c20176a516e3ac88eb7e65b6c9a03d4721edc2ca /tests/codegen/wasm_exceptions.rs | |
| parent | e9f95949138125bb1b98ed213a41b9aa825bacf5 (diff) | |
| download | rust-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.rs | 2 |
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); |
