-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
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.
Footnotes
Techcable and wmstack
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.