File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,29 @@ index b5cc8038ca4..1261ed0cd89 100644
393
393
fn name_cstr(&self) -> &CStr {
394
394
&self.name
395
395
}
396
+ diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs
397
+ index 44c8a50fd86..c88760942f0 100644
398
+ --- a/library/std/src/thread/mod.rs
399
+ +++ b/library/std/src/thread/mod.rs
400
+ @@ -204,8 +204,18 @@
401
+
402
+ #[unstable(feature = "libstd_thread_internals", issue = "none")]
403
+ #[cfg(target_thread_local)]
404
+ + #[cfg(not(test))]
405
+ #[doc(hidden)]
406
+ pub use self::local::fast::Key as __FastLocalKeyInner;
407
+ + #[unstable(feature = "libstd_thread_internals", issue = "none")]
408
+ + #[cfg(target_thread_local)]
409
+ + #[cfg(test)] // when building for tests, use real std's key
410
+ + pub use realstd::thread::__FastLocalKeyInner;
411
+ + #[unstable(feature = "libstd_thread_internals", issue = "none")]
412
+ + #[cfg(target_thread_local)]
413
+ + #[cfg(test)]
414
+ + pub use self::local::fast::Key as __FastLocalKeyInnerUnused; // we import this anyway to silence 'unused' warnings
415
+ +
416
+ #[unstable(feature = "libstd_thread_internals", issue = "none")]
417
+ #[doc(hidden)]
418
+ pub use self::local::os::Key as __OsLocalKeyInner;
396
419
diff --git a/library/std/src/thread/tests.rs b/library/std/src/thread/tests.rs
397
420
index ec68b529188..130e47c8d44 100644
398
421
--- a/library/std/src/thread/tests.rs
You can’t perform that action at this time.
0 commit comments