Skip to content

Commit

Permalink
Fix unreachable_pub lint for hermit target
Browse files Browse the repository at this point in the history
  • Loading branch information
thaliaarchi authored and gitbot committed Feb 20, 2025
1 parent 7984f24 commit 153a114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panic_unwind/src/hermit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 153a114

Please sign in to comment.