Skip to content

Commit c721bb2

Browse files
uefi-services: Drop use of unstable alloc_error_handler feature
As of 2022-12-18, we can rely on the `default_alloc_error_handler` feature which was stabilized in rust-lang/rust#102318. The behavior of the default handler is to panic, essentially the same as our current custom one.
1 parent b231cbc commit c721bb2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

uefi-services/src/lib.rs

-9
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
//! [`exit_boot_services`]: uefi::table::SystemTable::exit_boot_services
2828
2929
#![no_std]
30-
#![feature(alloc_error_handler)]
3130
#![feature(abi_efiapi)]
3231
#![deny(clippy::must_use_candidate)]
3332
#![allow(stable_features)]
@@ -257,11 +256,3 @@ fn panic_handler(info: &core::panic::PanicInfo) -> ! {
257256
}
258257
}
259258
}
260-
261-
#[alloc_error_handler]
262-
fn out_of_memory(layout: ::core::alloc::Layout) -> ! {
263-
panic!(
264-
"Ran out of free memory while trying to allocate {:#?}",
265-
layout
266-
);
267-
}

0 commit comments

Comments
 (0)