1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//! Contains definitions for panic and allocation error handlers, along with other `#[no_std]` //! support code. #[panic_handler] #[no_mangle] pub fn panic(_info: &::core::panic::PanicInfo) -> ! { unsafe { ::core::intrinsics::abort(); } } #[alloc_error_handler] #[no_mangle] pub extern "C" fn oom(_: ::core::alloc::Layout) -> ! { unsafe { ::core::intrinsics::abort(); } } #[lang = "eh_personality"] extern "C" fn eh_personality() {}