mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
f54dbe6e31
This reverts commit abc0660118
.
21 lines
310 B
Rust
21 lines
310 B
Rust
#![crate_type = "bin"]
|
|
#![feature(lang_items, alloc_error_handler)]
|
|
#![no_main]
|
|
#![no_std]
|
|
|
|
use core::alloc::Layout;
|
|
use core::panic::PanicInfo;
|
|
|
|
#[panic_handler]
|
|
fn panic(_: &PanicInfo) -> ! {
|
|
loop {}
|
|
}
|
|
|
|
#[lang = "eh_personality"]
|
|
fn eh() {}
|
|
|
|
#[alloc_error_handler]
|
|
fn oom(_: Layout) -> ! {
|
|
loop {}
|
|
}
|