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