rust/library/std
Matthias Krüger f0fb411969
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
2024-09-15 20:55:13 +02:00
..
benches Reformat `use` declarations. 2024-07-29 08:26:52 +10:00
src Rollup merge of #130339 - CAD97:unwind-choice, r=dtolnay 2024-09-15 20:55:13 +02:00
tests rustc_target: Add SME aarch64 features 2024-08-27 11:11:47 +01:00
Cargo.toml Update compiler-builtins to 0.1.125 2024-09-05 09:31:17 -07:00
build.rs Port std library to RTEMS 2024-09-03 09:19:29 +02:00