2024-11-11 10:31:29 -05:00
|
|
|
#![feature(lang_items, panic_unwind)]
|
2023-03-13 20:55:43 -07:00
|
|
|
#![no_std]
|
|
|
|
|
|
2024-11-11 10:31:29 -05:00
|
|
|
// Since the `unwind` crate is a dependency of the `std` crate, and we have
|
|
|
|
|
// `#![no_std]`, the unwinder is not included in the link command by default.
|
|
|
|
|
// We need to include crate `unwind` manually.
|
|
|
|
|
extern crate unwind;
|
2024-04-18 09:52:00 -04:00
|
|
|
|
2023-03-13 20:55:43 -07:00
|
|
|
#[panic_handler]
|
|
|
|
|
pub fn begin_panic_handler(_info: &core::panic::PanicInfo<'_>) -> ! {
|
|
|
|
|
loop {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[lang = "eh_personality"]
|
|
|
|
|
extern "C" fn eh_personality() {}
|