Skip to content

Commit 45ca53f

Browse files
committed
std: move thread local implementation to sys
1 parent d377991 commit 45ca53f

File tree

7 files changed

+4
-3
lines changed

7 files changed

+4
-3
lines changed

library/std/src/sys/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ pub mod cmath;
99
pub mod locks;
1010
pub mod os_str;
1111
pub mod path;
12+
#[allow(dead_code)]
13+
#[allow(unused_imports)]
14+
pub mod thread_local;
1215

1316
// FIXME(117276): remove this, move feature implementations into individual
1417
// submodules.

library/std/src/sys/pal/common/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
pub mod alloc;
1414
pub mod small_c_string;
15-
#[allow(unused_imports)]
16-
pub mod thread_local;
1715

1816
#[cfg(test)]
1917
mod tests;

library/std/src/thread/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ cfg_if::cfg_if! {
205205
#[doc(hidden)]
206206
#[unstable(feature = "thread_local_internals", issue = "none")]
207207
pub mod local_impl {
208-
pub use crate::sys::common::thread_local::{thread_local_inner, Key, abort_on_dtor_unwind};
208+
pub use crate::sys::thread_local::{thread_local_inner, Key, abort_on_dtor_unwind};
209209
}
210210
}
211211
}

0 commit comments

Comments
 (0)