about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-15 20:55:13 +0200
committerGitHub <noreply@github.com>2024-09-15 20:55:13 +0200
commitf0fb411969c4c2e6fdc20a813956cc370e914b40 (patch)
tree735fb3c91b2d2e306c24a7c0d0465661d1e2be4f /compiler/rustc_codegen_ssa/src/codegen_attrs.rs
parent0daa636b93540579573f1b92d05536b20da2252a (diff)
parent42a44a04ee1b2a99ea78e942937b4ce3d8a3067e (diff)
downloadrust-f0fb411969c4c2e6fdc20a813956cc370e914b40.tar.gz
rust-f0fb411969c4c2e6fdc20a813956cc370e914b40.zip
Rollup merge of #130339 - CAD97:unwind-choice, r=dtolnay
Add `core::panic::abort_unwind`

`abort_unwind` is like `catch_unwind` except that it aborts the process if it unwinds, using the `#[rustc_nounwind]` mechanism also used by `extern "C" fn` to abort unwinding. The docs attempt to make it clear when to (rarely) and when not to (usually) use the function.

Although usage of the function is discouraged, having it available will help to normalize the experience when abort_unwind shims are hit, as opposed to the current ecosystem where there exist multiple common patterns for converting unwinding into a process abort.

For further information and justification, see the linked ACP.

- Tracking issue: https://github.com/rust-lang/rust/issues/130338
- ACP: https://github.com/rust-lang/libs-team/issues/441
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/codegen_attrs.rs')
0 files changed, 0 insertions, 0 deletions