diff --git a/test_suite/no_std/src/main.rs b/test_suite/no_std/src/main.rs index ff47dba0..849b7837 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)] +#![feature(lang_items, start, panic_implementation)] #![no_std] extern crate libc; @@ -20,8 +20,8 @@ fn start(_argc: isize, _argv: *const *const u8) -> isize { #[no_mangle] pub extern "C" fn rust_eh_personality() {} -#[lang = "panic_impl"] -fn panic_impl(_info: &core::panic::PanicInfo) -> ! { +#[panic_implementation] +fn panic(_info: &core::panic::PanicInfo) -> ! { unsafe { libc::abort(); }