mirror of
https://github.com/serde-rs/serde.git
synced 2025-09-29 22:11:09 +00:00
Update no-std panic signature for nightly-2018-06-03
This commit is contained in:
parent
a887db398b
commit
a740f76772
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user