File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -203,8 +203,18 @@ pub use self::local::{AccessError, LocalKey};
203
203
204
204
#[ unstable( feature = "libstd_thread_internals" , issue = "none" ) ]
205
205
#[ cfg( target_thread_local) ]
206
+ #[ cfg( not( test) ) ]
206
207
#[ doc( hidden) ]
207
208
pub use self :: local:: fast:: Key as __FastLocalKeyInner;
209
+ #[ unstable( feature = "libstd_thread_internals" , issue = "none" ) ]
210
+ #[ cfg( target_thread_local) ]
211
+ #[ cfg( test) ] // when building for tests, use real std's key
212
+ pub use realstd:: thread:: __FastLocalKeyInner;
213
+ #[ unstable( feature = "libstd_thread_internals" , issue = "none" ) ]
214
+ #[ cfg( target_thread_local) ]
215
+ #[ cfg( test) ]
216
+ pub use self :: local:: fast:: Key as __FastLocalKeyInnerUnused; // we import this anyway to silence 'unused' warnings
217
+
208
218
#[ unstable( feature = "libstd_thread_internals" , issue = "none" ) ]
209
219
#[ doc( hidden) ]
210
220
pub use self :: local:: os:: Key as __OsLocalKeyInner;
You can’t perform that action at this time.
0 commit comments