about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-09-18 14:47:57 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-10-03 18:53:52 +0200
commit17f418155e0bdb84c89b1c28eb6c86503d4cbefd (patch)
tree8f819ff704ff3ebbc4f56c06ffd909a9e0d7568e
parent5051904d66b14d7b8dd2750bd30610c8c81cb01d (diff)
downloadrust-17f418155e0bdb84c89b1c28eb6c86503d4cbefd.tar.gz
rust-17f418155e0bdb84c89b1c28eb6c86503d4cbefd.zip
Use rtabort! instead of rtprintpanic! + abort_internal
-rw-r--r--library/std/src/rt.rs3
1 files changed, 1 insertions, 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