Remove detailed abort, too many compatibility issues
This commit is contained in:
@@ -91,27 +91,7 @@ pub unsafe extern "C" fn a64l(s: *const c_char) -> c_long {
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn abort() -> ! {
|
||||
eprintln!("Legacy Abort");
|
||||
|
||||
intrinsics::abort();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn __abort(
|
||||
func: *const c_char,
|
||||
file: *const c_char,
|
||||
line: c_int,
|
||||
) -> ! {
|
||||
let func = CStr::from_ptr(func).to_str().unwrap();
|
||||
let file = CStr::from_ptr(file).to_str().unwrap();
|
||||
|
||||
eprintln!(
|
||||
"{}: {}:{}: Abort",
|
||||
func,
|
||||
file,
|
||||
line
|
||||
);
|
||||
|
||||
eprintln!("Abort");
|
||||
intrinsics::abort();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user