Matthias Krüger 9d15167921
Rollup merge of #140809 - bjorn3:panic_runtime_cleanup, r=petrochenkov
Reduce special casing for the panic runtime

See the individual commits for more info.
2025-06-27 22:13:01 +02:00

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 {}
}