mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
remove alloc error handler
This commit is contained in:
parent
06db23d574
commit
da61ba78ae
|
@ -120,15 +120,6 @@ pub(crate) unsafe fn number_of_blocks() -> u32 {
|
||||||
GLOBAL_ALLOC.number_of_blocks()
|
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 {
|
fn iwram_data_end() -> usize {
|
||||||
extern "C" {
|
extern "C" {
|
||||||
static __iwram_end: usize;
|
static __iwram_end: usize;
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
any(test, feature = "testing"),
|
any(test, feature = "testing"),
|
||||||
reexport_test_harness_main = "test_main"
|
reexport_test_harness_main = "test_main"
|
||||||
)]
|
)]
|
||||||
#![feature(alloc_error_handler)]
|
|
||||||
#![feature(allocator_api)]
|
#![feature(allocator_api)]
|
||||||
#![feature(asm_const)]
|
#![feature(asm_const)]
|
||||||
#![warn(clippy::all)]
|
#![warn(clippy::all)]
|
||||||
|
|
Loading…
Reference in a new issue