Skip to content

Commit 5794952

Browse files
committed
Fix unreachable_pub lint for hermit target
1 parent 8df89d1 commit 5794952

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: library/panic_unwind/src/hermit.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ use core::any::Any;
77

88
pub(crate) unsafe fn cleanup(_ptr: *mut u8) -> Box<dyn Any + Send> {
99
extern "C" {
10-
pub fn __rust_abort() -> !;
10+
fn __rust_abort() -> !;
1111
}
1212
__rust_abort();
1313
}
1414

1515
pub(crate) unsafe fn panic(_data: Box<dyn Any + Send>) -> u32 {
1616
extern "C" {
17-
pub fn __rust_abort() -> !;
17+
fn __rust_abort() -> !;
1818
}
1919
__rust_abort();
2020
}

0 commit comments

Comments
 (0)