diff --git a/src/lib.rs b/src/lib.rs index bc93c19..03b4783 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -252,7 +252,7 @@ unsafe fn catch_unwind R>(f: F) -> Result{ let data_ptr = &mut data as *mut _ as *mut u8; - if core::intrinsics::r#try(do_call::, data_ptr, do_catch::) == 0{ + if core::intrinsics::catch_unwind(do_call::, data_ptr, do_catch::) == 0{ Result::Ok(ManuallyDrop::into_inner(data.r)) }else{ Result::Err(())