Update no-std panic signature for nightly-2018-06-03

This commit is contained in:
David Tolnay 2018-06-03 23:15:16 -07:00
parent a887db398b
commit a740f76772
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -20,13 +20,8 @@ fn start(_argc: isize, _argv: *const *const u8) -> isize {
#[no_mangle] #[no_mangle]
pub extern "C" fn rust_eh_personality() {} pub extern "C" fn rust_eh_personality() {}
#[lang = "panic_fmt"] #[lang = "panic_impl"]
#[no_mangle] fn panic_impl(_info: &core::panic::PanicInfo) -> ! {
pub extern "C" fn rust_begin_panic(
_msg: core::fmt::Arguments,
_file: &'static str,
_line: u32,
) -> ! {
unsafe { unsafe {
libc::abort(); libc::abort();
} }