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(); }