mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-24 13:27:33 +00:00
34 lines
595 B
Rust
34 lines
595 B
Rust
#![crate_type = "rlib"]
|
|
#![feature(lang_items)]
|
|
#![feature(panic_unwind)]
|
|
#![feature(rustc_attrs)]
|
|
#![no_std]
|
|
|
|
extern crate panic_unwind;
|
|
|
|
#[panic_handler]
|
|
pub fn panic_handler(_: &core::panic::PanicInfo) -> ! {
|
|
loop {}
|
|
}
|
|
|
|
#[rustc_std_internal_symbol]
|
|
extern "C" fn __rust_drop_panic() -> ! {
|
|
loop {}
|
|
}
|
|
|
|
#[rustc_std_internal_symbol]
|
|
extern "C" fn __rust_foreign_exception() -> ! {
|
|
loop {}
|
|
}
|
|
|
|
#[lang = "eh_personality"]
|
|
fn eh_personality(
|
|
_version: i32,
|
|
_actions: i32,
|
|
_exception_class: u64,
|
|
_exception_object: *mut (),
|
|
_context: *mut (),
|
|
) -> i32 {
|
|
loop {}
|
|
}
|