Commit 6d14583
committed
Auto merge of rust-lang#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: rust-lang/libs-team#192
Closes rust-lang#51540
Closes rust-lang#512451 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | 384 | | |
389 | 385 | | |
390 | 386 | | |
| |||
0 commit comments