fix: change core::intrinsics::r#try -> catch_unwind

Follow change in rust core library in commit b4ca582b898.
master
Stanislav Ravas 7 months ago
parent 391a537107
commit a702bc88ff

@ -252,7 +252,7 @@ unsafe fn catch_unwind<R, F: FnOnce() -> R>(f: F) -> Result<R, ()>{
let data_ptr = &mut data as *mut _ as *mut u8; let data_ptr = &mut data as *mut _ as *mut u8;
if core::intrinsics::r#try(do_call::<F, R>, data_ptr, do_catch::<F, R>) == 0{ if core::intrinsics::catch_unwind(do_call::<F, R>, data_ptr, do_catch::<F, R>) == 0{
Result::Ok(ManuallyDrop::into_inner(data.r)) Result::Ok(ManuallyDrop::into_inner(data.r))
}else{ }else{
Result::Err(()) Result::Err(())

Loading…
Cancel
Save