Rollup merge of #89068 - bjorn3:restructure_rt2, r=joshtriplett
Restructure std::rt (part 2) A couple more cleanups on top of https://github.com/rust-lang/rust/pull/89011 Blocked on #89011
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user