rust/library/core/src
Michael Goulet f6b0f4707b
Rollup merge of #106045 - RalfJung:oom-nounwind-panic, r=Amanieu
default OOM handler: use non-unwinding panic, to match std handler

The OOM handler in std will by default abort. This adjusts the default in liballoc to do the same, using the `can_unwind` flag on the panic info to indicate a non-unwinding panic.

In practice this probably makes little difference since the liballoc default will only come into play in no-std situations where people write a custom panic handler, which most likely will not implement unwinding. But still, this seems more consistent.

Cc `@rust-lang/wg-allocators,` https://github.com/rust-lang/rust/issues/66741
2023-01-03 17:19:26 -08:00
..
alloc Rollup merge of #102207 - CraftSpider:const-layout, r=scottmcm 2022-11-22 01:26:07 -05:00
array doc: Fix a few small issues 2022-12-15 14:05:03 +01:00
async_iter use consistent terminology 2022-10-29 09:23:12 +02:00
cell Auto merge of #105651 - tgross35:once-cell-inline, r=m-ou-se 2022-12-30 19:22:33 +00:00
char update stabilization version numbers 2022-12-28 09:18:42 -05:00
convert Implement From<bool> for f32, f64 2022-12-15 03:55:21 +00:00
ffi Implement va_list and va_arg for s390x FFI 2022-12-19 21:07:57 +01:00
fmt Replace libstd, libcore, liballoc in docs. 2022-12-30 14:00:40 +01:00
future Update bootstrap cfg 2022-12-28 09:18:43 -05:00
hash Fix some ~const usage in libcore 2022-12-20 15:01:37 +00:00
intrinsics fix custom mir doc tests 2022-12-28 09:18:43 -05:00
iter Rollup merge of #99244 - gthb:doc-improve-iterator-scan, r=m-ou-se 2022-12-30 17:01:38 +01:00
macros Update bootstrap cfg 2022-12-28 09:18:43 -05:00
mem Rename assert_uninit_valid intrinsic 2022-12-13 18:08:35 +01:00
num Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
ops Update bootstrap cfg 2022-12-28 09:18:43 -05:00
panic Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
prelude Replace libstd, libcore, liballoc in docs. 2022-12-30 14:00:40 +01:00
ptr Use some more const_eval_select in pointer methods for compile times 2022-12-30 16:39:58 +01:00
slice Replace libstd, libcore, liballoc in docs. 2022-12-30 14:00:40 +01:00
str Auto merge of #95644 - WaffleLapkin:str_split_as_str_refactor_take2, r=Amanieu 2023-01-03 11:06:08 +00:00
sync Correct typos in core::sync::Exclusive::get_{pin_mut, mut} 2022-12-12 09:19:17 +01:00
task Add PhantomData marker to Context to make Context !Send and !Sync 2023-01-02 10:20:59 -08:00
unicode Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
any.rs Fix core::any mod-level docs 2022-12-27 21:42:42 +01:00
arch.rs move core::arch into separate file 2022-11-20 10:28:14 +01:00
ascii.rs Inline <EscapeDefault as Iterator>::next 2022-03-10 15:35:22 +01:00
asserting.rs [RFC 2011] Library code 2022-05-22 07:18:32 -03:00
bool.rs Add missing assertion 2022-09-22 02:12:06 -04:00
borrow.rs Minor grammar nit. 2022-12-12 16:22:01 -07:00
cell.rs Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
clone.rs Make some trivial functions #[inline(always)] 2022-12-07 17:11:17 +01:00
cmp.rs Auto merge of #106210 - fee1-dead-contrib:const-closure-trait-method, r=compiler-errors 2022-12-30 01:09:31 +00:00
const_closure.rs Update bootstrap cfg 2022-12-28 09:18:43 -05:00
default.rs cfg-step code 2022-11-06 17:21:21 -05:00
error.md Small round of typo fixes 2022-11-04 20:06:18 -07:00
error.rs Revert "Implement allow-by-default multiple_supertrait_upcastable lint" 2022-12-29 00:47:23 -08:00
hint.rs Make some trivial functions #[inline(always)] 2022-12-07 17:11:17 +01:00
internal_macros.rs ignore a doctest for the non-exported macro 2022-05-03 18:33:56 +09:00
intrinsics.rs Update bootstrap cfg 2022-12-28 09:18:43 -05:00
lib.rs Auto merge of #95644 - WaffleLapkin:str_split_as_str_refactor_take2, r=Amanieu 2023-01-03 11:06:08 +00:00
marker.rs Update bootstrap cfg 2022-12-28 09:18:43 -05:00
option.rs Improve wording for Option and Result 2022-12-13 14:49:10 -05:00
panic.rs Replace libstd, libcore, liballoc in docs. 2022-12-30 14:00:40 +01:00
panicking.rs Rollup merge of #106045 - RalfJung:oom-nounwind-panic, r=Amanieu 2023-01-03 17:19:26 -08:00
pin.rs docs: improve pin docs 2022-12-19 15:46:44 +01:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
primitive_docs.rs disable strict-provenance-violating doctests in Miri 2022-11-22 11:49:02 +01:00
result.rs Improve wording for Option and Result 2022-12-13 14:49:10 -05:00
time.rs Bump version placeholders to release 2022-11-06 17:11:02 -05:00
tuple.rs const Compare Tuples 2022-11-09 09:52:04 +01:00
unit.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00