2018-06-21 13:01:16 -05:00
|
|
|
#![crate_type = "bin"]
|
2023-04-24 17:08:35 -05:00
|
|
|
#![feature(lang_items, alloc_error_handler)]
|
2018-06-21 13:01:16 -05:00
|
|
|
#![no_main]
|
|
|
|
#![no_std]
|
|
|
|
|
2018-07-06 08:49:52 -05:00
|
|
|
use core::alloc::Layout;
|
2018-06-21 13:01:16 -05:00
|
|
|
use core::panic::PanicInfo;
|
|
|
|
|
2018-08-22 17:40:32 -05:00
|
|
|
#[panic_handler]
|
2018-06-21 13:01:16 -05:00
|
|
|
fn panic(_: &PanicInfo) -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[lang = "eh_personality"]
|
|
|
|
fn eh() {}
|
2023-04-24 17:08:35 -05:00
|
|
|
|
|
|
|
#[alloc_error_handler]
|
|
|
|
fn oom(_: Layout) -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|