Open
Description
Feature gate: #![feature(abort_unwind)]
This is a tracking issue for core::panic::abort_unwind
.
abort_unwind
is similar to catch_unwind
, except that it aborts the process if it unwinds instead of catching the unwind. Prior to the abort, the panic hook is called in the same way that it is for other functions that cannot unwind (e.g. extern "C" fn
).
Public API
// in core::panic (and std::panic)
fn abort_unwind<F: FnOnce() -> R, R>(f: F) -> R;
Steps / History
- ACP: ACP: panic::abort_unwind libs-team#441
- Implementation: Add
core::panic::abort_unwind
#130339 - Final naming (
abort_on_unwind
)? - Improve documentation (add example)?
- Expose a better
fn abort() -> !
incore
? - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.