Remove the eh_personality custom and some unused macros

low_level
kirbylife 2022-11-22 00:04:29 -06:00
parent fd9edad00f
commit f3322998cc
2 changed files with 3 additions and 7 deletions

View File

@ -7,3 +7,4 @@ edition = "2021"
[profile.release] [profile.release]
lto = true lto = true
panic = "abort"

View File

@ -1,15 +1,10 @@
#![feature(lang_items)]
#![allow(improper_ctypes_definitions)]
#![no_std] #![no_std]
#![no_main] #![no_main]
#[no_mangle] #[no_mangle]
pub extern "C" fn main() {} pub extern "C" fn main() {}
#[lang = "eh_personality"] #[panic_handler]
pub unsafe extern "C" fn rust_eh_personality() -> () {}
#[lang = "panic_impl"]
fn panic(_info: &::core::panic::PanicInfo) -> ! { fn panic(_info: &::core::panic::PanicInfo) -> ! {
loop {} loop {}
} }