From 480f858fc303b3915972600c3d5de99aee01fbff Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 3 Sep 2018 08:24:27 -0700 Subject: [PATCH] Update panic_handler attribute name changed in nightly --- test_suite/no_std/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_suite/no_std/src/main.rs b/test_suite/no_std/src/main.rs index 849b7837..95281d43 100644 --- a/test_suite/no_std/src/main.rs +++ b/test_suite/no_std/src/main.rs @@ -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();