blob: 9140ceed229147463e1dff5492d795a86a7b8780 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![feature(lang_items, panic_unwind)]
#![no_std]
// 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;
#[panic_handler]
pub fn begin_panic_handler(_info: &core::panic::PanicInfo<'_>) -> ! {
loop {}
}
#[lang = "eh_personality"]
extern "C" fn eh_personality() {}
|