Try to fix example's compile on nightly
This commit is contained in:
parent
86bf357a14
commit
5b5b2581e4
@ -14,6 +14,7 @@
|
|||||||
#![feature(start)]
|
#![feature(start)]
|
||||||
#![feature(global_allocator)]
|
#![feature(global_allocator)]
|
||||||
#![feature(allocator_api)]
|
#![feature(allocator_api)]
|
||||||
|
#![feature(panic_implementation)]
|
||||||
#![cfg_attr(windows, feature(panic_unwind))]
|
#![cfg_attr(windows, feature(panic_unwind))]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
@ -442,7 +443,7 @@ pub fn _Unwind_Resume() {}
|
|||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern "C" fn eh_personality() {}
|
pub extern "C" fn eh_personality() {}
|
||||||
|
|
||||||
#[lang = "panic_fmt"]
|
#[panic_implementation]
|
||||||
#[no_mangle]
|
fn panic(x: &core::panic::PanicInfo) -> ! {
|
||||||
#[allow(private_no_mangle_fns)]
|
loop {}
|
||||||
extern "C" fn panic_fmt() {}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user