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
This commit is contained in:
commit
39cf520299
58 changed files with 138 additions and 878 deletions
|
@ -291,8 +291,6 @@ declare_features! (
|
|||
(active, abi_x86_interrupt, "1.17.0", Some(40180), None),
|
||||
/// Allows additional const parameter types, such as `&'static str` or user defined types
|
||||
(incomplete, adt_const_params, "1.56.0", Some(95174), None),
|
||||
/// Allows defining an `#[alloc_error_handler]`.
|
||||
(active, alloc_error_handler, "1.29.0", Some(51540), None),
|
||||
/// Allows trait methods with arbitrary self types.
|
||||
(active, arbitrary_self_types, "1.23.0", Some(44874), None),
|
||||
/// Allows using `const` operands in inline assembly.
|
||||
|
|
|
@ -47,6 +47,8 @@ declare_features! (
|
|||
|
||||
(removed, advanced_slice_patterns, "1.0.0", Some(62254), None,
|
||||
Some("merged into `#![feature(slice_patterns)]`")),
|
||||
/// Allows defining an `#[alloc_error_handler]`.
|
||||
(removed, alloc_error_handler, "CURRENT_RUSTC_VERSION", Some(51540), None, Some("now handled by panic handler")),
|
||||
(removed, allocator, "1.0.0", None, None, None),
|
||||
/// Allows a test to fail without failing the whole suite.
|
||||
(removed, allow_fail, "1.19.0", Some(46488), None, Some("removed due to no clear use cases")),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue