Use default alloc error handler in liballoc

This commit is contained in:
bjorn3
2024-03-10 13:46:43 +01:00
parent c15c6e1dd2
commit 57c1bf94b6
-6
View File
@@ -1,7 +1,6 @@
#![no_std]
#![feature(
asm_const,
alloc_error_handler,
core_intrinsics,
)]
@@ -42,11 +41,6 @@ fn panic_handler(info: &core::panic::PanicInfo) -> ! {
core::intrinsics::abort();
}
#[alloc_error_handler]
fn alloc_error_handler(_: core::alloc::Layout) -> ! {
core::intrinsics::abort();
}
#[cfg(target_pointer_width = "32")]
const HEAP_OFF: usize = 0x4000_0000;