Skip to content

Commit

Permalink
Use rtabort! instead of rtprintpanic! + abort_internal
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Oct 3, 2021
1 parent 5051904 commit 17f4181
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/std/src/rt.rs
Expand Up @@ -128,8 +128,7 @@ fn lang_start_internal(
let ret_code = panic::catch_unwind(move || panic::catch_unwind(main).unwrap_or(101) as isize)
.map_err(move |e| {
mem::forget(e);
rtprintpanic!("drop of the panic payload panicked");
sys::abort_internal()
rtabort!("drop of the panic payload panicked");
});
panic::catch_unwind(cleanup).map_err(rt_abort)?;
ret_code
Expand Down

0 comments on commit 17f4181

Please sign in to comment.