From a740f7677211ffdcf293e98984d7a7ddb5b4f9b8 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 3 Jun 2018 23:15:16 -0700 Subject: [PATCH] Update no-std panic signature for nightly-2018-06-03 --- test_suite/no_std/src/main.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test_suite/no_std/src/main.rs b/test_suite/no_std/src/main.rs index b503c8f4..ff47dba0 100644 --- a/test_suite/no_std/src/main.rs +++ b/test_suite/no_std/src/main.rs @@ -20,13 +20,8 @@ fn start(_argc: isize, _argv: *const *const u8) -> isize { #[no_mangle] pub extern "C" fn rust_eh_personality() {} -#[lang = "panic_fmt"] -#[no_mangle] -pub extern "C" fn rust_begin_panic( - _msg: core::fmt::Arguments, - _file: &'static str, - _line: u32, -) -> ! { +#[lang = "panic_impl"] +fn panic_impl(_info: &core::panic::PanicInfo) -> ! { unsafe { libc::abort(); }