Skip to content

Commit 5e9d445

Browse files
committed
Attempt to fix CI
1 parent ca0f659 commit 5e9d445

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

std/src/sys/exit_guard.rs

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ cfg_if::cfg_if! {
1919
/// * If it is called again on the same thread as the first call, it will abort.
2020
/// * If it is called again on a different thread, it will wait in a loop
2121
/// (waiting for the process to exit).
22+
#[cfg_attr(any(test, doctest), allow(dead_code))]
2223
pub(crate) fn unique_thread_exit() {
2324
let this_thread_id = unsafe { libc::pthread_self() };
2425
use crate::sync::{Mutex, PoisonError};
@@ -54,6 +55,7 @@ cfg_if::cfg_if! {
5455
///
5556
/// Mitigation is ***NOT*** implemented on this platform, either because this platform
5657
/// is not affected, or because mitigation is not yet implemented for this platform.
58+
#[cfg_attr(any(test, doctest), allow(dead_code))]
5759
pub(crate) fn unique_thread_exit() {
5860
// Mitigation not required on platforms where `exit` is thread-safe.
5961
}

0 commit comments

Comments
 (0)