remove alloc error handler

This commit is contained in:
Corwin 2023-04-23 12:50:15 +01:00
parent 06db23d574
commit da61ba78ae
No known key found for this signature in database
2 changed files with 0 additions and 10 deletions

View file

@ -120,15 +120,6 @@ pub(crate) unsafe fn number_of_blocks() -> u32 {
GLOBAL_ALLOC.number_of_blocks()
}
#[alloc_error_handler]
fn alloc_error(layout: Layout) -> ! {
panic!(
"Failed to allocate size {} with alignment {}",
layout.size(),
layout.align()
);
}
fn iwram_data_end() -> usize {
extern "C" {
static __iwram_end: usize;

View file

@ -10,7 +10,6 @@
any(test, feature = "testing"),
reexport_test_harness_main = "test_main"
)]
#![feature(alloc_error_handler)]
#![feature(allocator_api)]
#![feature(asm_const)]
#![warn(clippy::all)]