Remove the eh_personality custom and some unused macros
parent
fd9edad00f
commit
f3322998cc
|
@ -6,4 +6,5 @@ edition = "2021"
|
|||
[dependencies]
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
lto = true
|
||||
panic = "abort"
|
|
@ -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 {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue