]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/rt.rs
Rollup merge of #92058 - jsha:run-on-hover, r=GuillaumeGomez
[rust.git] / library / std / src / rt.rs
index 121c214780d2d5e5ba371de3cd49c167ef4fbf6b..08e58257572b24fcfddeb1a18be409b6b124c8a6 100644 (file)
@@ -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