Remove #[alloc_error_handler] from the compiler and library
This commit is contained in:
parent
c9a6e41026
commit
abc0660118
49 changed files with 22 additions and 842 deletions
|
@ -1,4 +1,4 @@
|
|||
#![feature(start, core_intrinsics, alloc_error_handler)]
|
||||
#![feature(start, core_intrinsics)]
|
||||
#![no_std]
|
||||
|
||||
extern crate alloc;
|
||||
|
@ -22,11 +22,6 @@ fn panic_handler(_: &core::panic::PanicInfo) -> ! {
|
|||
core::intrinsics::abort();
|
||||
}
|
||||
|
||||
#[alloc_error_handler]
|
||||
fn alloc_error_handler(_: alloc::alloc::Layout) -> ! {
|
||||
core::intrinsics::abort();
|
||||
}
|
||||
|
||||
#[start]
|
||||
fn main(_argc: isize, _argv: *const *const u8) -> isize {
|
||||
let world: Box<&str> = Box::new("Hello World!\0");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue