From 17f418155e0bdb84c89b1c28eb6c86503d4cbefd Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 18 Sep 2021 14:47:57 +0200 Subject: [PATCH] Use rtabort! instead of rtprintpanic! + abort_internal --- library/std/src/rt.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/std/src/rt.rs b/library/std/src/rt.rs index 4d72aff0116..88ee6f9b129 100644 --- a/library/std/src/rt.rs +++ b/library/std/src/rt.rs @@ -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