We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a393c5 + f5b5251 commit c9cdf56Copy full SHA for c9cdf56
src/lib.rs
@@ -2,7 +2,6 @@
2
#![cfg_attr(test, no_main)]
3
#![feature(custom_test_frameworks)]
4
#![feature(abi_x86_interrupt)]
5
-#![feature(alloc_error_handler)]
6
#![feature(const_mut_refs)]
7
#![test_runner(crate::test_runner)]
8
#![reexport_test_harness_main = "test_main"]
@@ -95,8 +94,3 @@ fn test_kernel_main(_boot_info: &'static BootInfo) -> ! {
95
94
fn panic(info: &PanicInfo) -> ! {
96
test_panic_handler(info)
97
}
98
-
99
-#[alloc_error_handler]
100
-fn alloc_error_handler(layout: alloc::alloc::Layout) -> ! {
101
- panic!("allocation error: {:?}", layout)
102
-}
0 commit comments