diff options
| author | bors <bors@rust-lang.org> | 2023-04-22 12:27:45 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-04-22 12:27:45 +0000 |
| commit | 321337b0a56de4f2b8ecdb4b7fe4e59c3b0b32a0 (patch) | |
| tree | f56b01fb1bafe1fce72122d363de0112e88efafd /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff | |
| parent | f40e4da5d99527ac8bed14e6c877e84f1a6a3851 (diff) | |
| parent | 5f30b63b3bbed424565ae175f84ce94d49480962 (diff) | |
| download | rust-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
