about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-22 12:27:45 +0000
committerbors <bors@rust-lang.org>2023-04-22 12:27:45 +0000
commit321337b0a56de4f2b8ecdb4b7fe4e59c3b0b32a0 (patch)
treef56b01fb1bafe1fce72122d363de0112e88efafd /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
parentf40e4da5d99527ac8bed14e6c877e84f1a6a3851 (diff)
parent5f30b63b3bbed424565ae175f84ce94d49480962 (diff)
downloadrust-321337b0a56de4f2b8ecdb4b7fe4e59c3b0b32a0.tar.gz
rust-321337b0a56de4f2b8ecdb4b7fe4e59c3b0b32a0.zip
Auto merge of #109507 - Amanieu:panic-oom-payload, r=davidtwco
Report allocation errors as panics

OOM is now reported as a panic but with a custom payload type (`AllocErrorPanicPayload`) which holds the layout that was passed to `handle_alloc_error`.

This should be review one commit at a time:
- The first commit adds `AllocErrorPanicPayload` and changes allocation errors to always be reported as panics.
- The second commit removes `#[alloc_error_handler]` and the `alloc_error_hook` API.

ACP: https://github.com/rust-lang/libs-team/issues/192

Closes #51540
Closes #51245
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions