Use default alloc error handler in liballoc
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user