]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #88098 - Amanieu:oom_panic, r=nagisa
authorbors <bors@rust-lang.org>
Fri, 18 Mar 2022 03:01:46 +0000 (03:01 +0000)
committerbors <bors@rust-lang.org>
Fri, 18 Mar 2022 03:01:46 +0000 (03:01 +0000)
Implement -Z oom=panic

This PR removes the `#[rustc_allocator_nounwind]` attribute on `alloc_error_handler` which allows it to unwind with a panic instead of always aborting. This is then used to implement `-Z oom=panic` as per RFC 2116 (tracking issue #43596).

Perf and binary size tests show negligible impact.


Trivial merge