rename 'try' intrinsic to 'catch_unwind'
This commit is contained in:
parent
e9f9594913
commit
b4ca582b89
16 changed files with 42 additions and 30 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue