Files
rust/tests/ui/extern-flag/auxiliary/panic_handler.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
436 B
Rust
Raw Normal View History

#![feature(lang_items, panic_unwind)]
2023-03-13 20:55:43 -07:00
#![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;
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() {}