mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-31 17:12:53 +00:00
std: use realstd fast key when building tests
This commit is contained in:
parent
c0941dfb5a
commit
138375a74c
@ -203,8 +203,18 @@ pub use self::local::{AccessError, LocalKey};
|
||||
|
||||
#[unstable(feature = "libstd_thread_internals", issue = "none")]
|
||||
#[cfg(target_thread_local)]
|
||||
#[cfg(not(test))]
|
||||
#[doc(hidden)]
|
||||
pub use self::local::fast::Key as __FastLocalKeyInner;
|
||||
#[unstable(feature = "libstd_thread_internals", issue = "none")]
|
||||
#[cfg(target_thread_local)]
|
||||
#[cfg(test)] // when building for tests, use real std's key
|
||||
pub use realstd::thread::__FastLocalKeyInner;
|
||||
#[unstable(feature = "libstd_thread_internals", issue = "none")]
|
||||
#[cfg(target_thread_local)]
|
||||
#[cfg(test)]
|
||||
pub use self::local::fast::Key as __FastLocalKeyInnerUnused; // we import this anyway to silence 'unused' warnings
|
||||
|
||||
#[unstable(feature = "libstd_thread_internals", issue = "none")]
|
||||
#[doc(hidden)]
|
||||
pub use self::local::os::Key as __OsLocalKeyInner;
|
||||
|
Loading…
Reference in New Issue
Block a user