From af909cab1ed6334e26550f5505c2c796b8606318 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sat, 29 Apr 2023 12:12:46 +0200 Subject: [PATCH] The `#[alloc_error_handler]` attribute was removed Allocation errors now always panic. --- src/lib.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index af2cb5ca2..a40936c18 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,7 +2,6 @@ #![cfg_attr(test, no_main)] #![feature(custom_test_frameworks)] #![feature(abi_x86_interrupt)] -#![feature(alloc_error_handler)] #![test_runner(crate::test_runner)] #![reexport_test_harness_main = "test_main"] @@ -93,8 +92,3 @@ fn test_kernel_main(_boot_info: &'static BootInfo) -> ! { fn panic(info: &PanicInfo) -> ! { test_panic_handler(info) } - -#[alloc_error_handler] -fn alloc_error_handler(layout: alloc::alloc::Layout) -> ! { - panic!("allocation error: {:?}", layout) -}