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

@ -6,4 +6,5 @@ edition = "2021"
[dependencies]
[profile.release]
lto = true
lto = true
panic = "abort"

View File

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