]> git.lizzy.rs Git - rust.git/commit
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)
commitfadd1c536a1cc7b2b605abc8e8482fb15363b3a7
treed01a504b0a461eb810c05f98d832f531511d2820
parent1c389322d226db421892abb64e0730b60eb15712
parent6fcfc3d8773ee0f318a3311bb02655e0ccafbc14
Auto merge of #88098 - Amanieu:oom_panic, r=nagisa

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.