#![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 {} }