Skip to content

Commit b1b8810

Browse files
committed
Allow handle_alloc_error to unwind
1 parent 291bf94 commit b1b8810

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

library/alloc/src/alloc.rs

-2
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ extern "Rust" {
348348
// This is the magic symbol to call the global alloc error handler. rustc generates
349349
// it to call `__rg_oom` if there is a `#[alloc_error_handler]`, or to call the
350350
// default implementations below (`__rdl_oom`) otherwise.
351-
#[rustc_allocator_nounwind]
352351
fn __rust_alloc_error_handler(size: usize, align: usize) -> !;
353352
}
354353

@@ -367,7 +366,6 @@ extern "Rust" {
367366
#[stable(feature = "global_alloc", since = "1.28.0")]
368367
#[rustc_const_unstable(feature = "const_alloc_error", issue = "92523")]
369368
#[cfg(all(not(no_global_oom_handling), not(test)))]
370-
#[rustc_allocator_nounwind]
371369
#[cold]
372370
pub const fn handle_alloc_error(layout: Layout) -> ! {
373371
const fn ct_error(_: Layout) -> ! {

0 commit comments

Comments
 (0)