Fix unreachable_pub lint for hermit target
This commit is contained in:
parent
8df89d1cb0
commit
5794952156
1 changed files with 2 additions and 2 deletions
|
|
@ -7,14 +7,14 @@ use core::any::Any;
|
|||
|
||||
pub(crate) unsafe fn cleanup(_ptr: *mut u8) -> Box<dyn Any + Send> {
|
||||
extern "C" {
|
||||
pub fn __rust_abort() -> !;
|
||||
fn __rust_abort() -> !;
|
||||
}
|
||||
__rust_abort();
|
||||
}
|
||||
|
||||
pub(crate) unsafe fn panic(_data: Box<dyn Any + Send>) -> u32 {
|
||||
extern "C" {
|
||||
pub fn __rust_abort() -> !;
|
||||
fn __rust_abort() -> !;
|
||||
}
|
||||
__rust_abort();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue