Skip to content

Commit

Permalink
Merge pull request #1216 from phil-opp/remove-alloc-error-handler
Browse files Browse the repository at this point in the history
The `#[alloc_error_handler]` attribute was removed
  • Loading branch information
phil-opp committed Apr 29, 2023
2 parents 5fc6566 + af909ca commit 92f197c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down Expand Up @@ -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)
}

0 comments on commit 92f197c

Please sign in to comment.