1
Fork 0

rename 'try' intrinsic to 'catch_unwind'

This commit is contained in:
Ralf Jung 2024-02-25 18:51:22 +01:00
parent e9f9594913
commit b4ca582b89
16 changed files with 42 additions and 30 deletions

View file

@ -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);