rust/library/core/src
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
..
alloc Try to golf down the amount of code in Layout 2024-08-20 18:41:07 -04:00
array Fixed more typos in library/core 2024-08-31 14:57:38 +09:00
ascii Use assert_unsafe_precondition! in AsciiChar::digit_unchecked 2024-08-21 16:26:35 -04:00
async_iter Reformat use declarations. 2024-07-29 08:26:52 +10:00
cell Add const_cell_into_inner to OnceCell 2024-08-21 17:36:05 -05:00
char Rollup merge of #130101 - RalfJung:const-cleanup, r=fee1-dead 2024-09-12 19:03:41 +02:00
clone CloneToUninit: use a private specialization trait 2024-07-29 20:44:43 +03:00
cmp Use generic NonZero everywhere in core. 2024-02-22 15:17:33 +01:00
convert Fix doc nits 2024-07-26 13:26:33 +01:00
ffi Port std library to RTEMS 2024-09-03 09:19:29 +02:00
fmt Fix elided_named_lifetimes in code 2024-08-31 15:35:41 +03:00
future replace placeholder version 2024-09-03 20:54:02 +01:00
hash Reformat use declarations. 2024-07-29 08:26:52 +10:00
intrinsics simd_shuffle: require index argument to be a vector 2024-09-14 14:43:24 +02:00
io Fix doc nits 2024-07-26 13:26:33 +01:00
iter Rollup merge of #130053 - glowcoil:next_if-docs, r=jhpratt 2024-09-14 20:22:40 +10:00
macros Fixed more typos in library/core 2024-08-31 14:57:38 +09:00
mem MaybeUninit::zeroed: mention that padding is not zeroed 2024-09-11 08:08:39 +02:00
net Rollup merge of #128641 - Konippi:standardize-duplicate-processes-in-parser, r=scottmcm 2024-09-01 03:58:03 +02:00
num Rollup merge of #130101 - RalfJung:const-cleanup, r=fee1-dead 2024-09-12 19:03:41 +02:00
ops Rollup merge of #128954 - zachs18:fromresidual-no-default, r=scottmcm 2024-08-14 21:43:08 +08:00
panic Tweak some attributes to improve panic_immediate_abort 2024-08-25 14:52:53 -04:00
prelude Avoid comments that describe multiple use items. 2024-07-17 08:02:46 +10:00
ptr stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
range Reformat use declarations. 2024-07-29 08:26:52 +10:00
slice also stabilize const_refs_to_cell 2024-09-15 10:20:47 +02:00
str Rollup merge of #130101 - RalfJung:const-cleanup, r=fee1-dead 2024-09-12 19:03:41 +02:00
sync compiler_fence documentation: emphasize synchronization, not reordering 2024-09-01 16:58:44 +02:00
task Auto merge of #129941 - BoxyUwU:bump-boostrap, r=albertlarsan68 2024-09-07 20:37:30 +00:00
unicode Rollup merge of #130101 - RalfJung:const-cleanup, r=fee1-dead 2024-09-12 19:03:41 +02:00
any.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
arch.rs Rollup merge of #130146 - folkertdev:bootstrap-naked-asm, r=Amanieu 2024-09-09 19:20:38 -07:00
ascii.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
asserting.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
bool.rs core is now compilable 2023-04-16 07:20:26 +00:00
borrow.rs Suggest borrowing on fn argument that is impl AsRef 2024-05-09 23:25:31 +00:00
cell.rs update cfgs 2024-09-05 17:24:01 +01:00
clone.rs update cfgs 2024-09-05 17:24:01 +01:00
cmp.rs Fix doc nits 2024-07-26 13:26:33 +01:00
default.rs update cfgs 2024-09-05 17:24:01 +01:00
error.md Mention core's PanicInfo in error.md. 2024-06-11 15:47:00 +02:00
error.rs Remove cfg(test) from library/core 2024-08-25 20:04:26 -04:00
escape.rs Remove feature(effects) from the standard library 2024-06-21 09:23:24 +00:00
hint.rs add extra linebreaks so rustdoc can identify the first sentence 2024-09-01 14:22:50 -07:00
internal_macros.rs Fix doc nits 2024-07-26 13:26:33 +01:00
intrinsics.rs update cfgs 2024-09-05 17:24:01 +01:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs also stabilize const_refs_to_cell 2024-09-15 10:20:47 +02:00
marker.rs Auto merge of #129941 - BoxyUwU:bump-boostrap, r=albertlarsan68 2024-09-07 20:37:30 +00:00
option.rs Rollup merge of #130118 - RalfJung:unwrap_unchecked, r=Noratrieb 2024-09-15 11:55:46 +02:00
panic.rs simplify abort_unwind 2024-09-15 14:27:24 -04:00
panicking.rs apply #[optimize(size)] to #[cold] ones and part of the panick machinery 2024-08-14 20:50:04 +02:00
pat.rs Add tracking issue to core-pattern-type 2024-08-07 20:43:05 -04:00
pin.rs update cfgs 2024-09-05 17:24:01 +01:00
primitive.rs library/core/src/primitive.rs: small doc fix 2024-07-23 23:11:26 +03:00
primitive_docs.rs Rollup merge of #129793 - lolbinarycat:doc-missing-newlines, r=workingjubilee 2024-09-02 04:19:29 +02:00
range.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
result.rs Option, Result: put the &mut variants of 'copied' under the same feature as the '&' variants 2024-09-08 16:52:40 +02:00
time.rs add FIXME(const-hack) 2024-09-08 23:08:40 +02:00
tuple.rs update cfgs 2024-09-05 17:24:01 +01:00
ub_checks.rs Change assert_unsafe_precondition docs to refer to check_language_ub 2024-08-21 17:35:54 -04:00
unit.rs Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00