rust/library/alloc
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
..
benches enable fuzzy_provenance_casts lint in liballoc 2022-11-20 19:12:18 +01:00
src Rollup merge of #106045 - RalfJung:oom-nounwind-panic, r=Amanieu 2023-01-03 17:19:26 -08:00
tests Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
Cargo.toml Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00