Update panic_handler attribute name changed in nightly

This commit is contained in:
David Tolnay 2018-09-03 08:24:27 -07:00
parent 7d752c5a60
commit 480f858fc3
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -6,7 +6,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(lang_items, start, panic_implementation)]
#![feature(lang_items, start, panic_handler)]
#![no_std]
extern crate libc;
@ -20,7 +20,7 @@ fn start(_argc: isize, _argv: *const *const u8) -> isize {
#[no_mangle]
pub extern "C" fn rust_eh_personality() {}
#[panic_implementation]
#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
unsafe {
libc::abort();