File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 150
150
151
151
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
152
152
#![ deny( unsafe_op_in_unsafe_fn) ]
153
+ // Under `test`, `__FastLocalKeyInner` seems unused.
154
+ #![ cfg_attr( test, allow( dead_code) ) ]
153
155
154
156
#[ cfg( all( test, not( target_os = "emscripten" ) ) ) ]
155
157
mod tests;
@@ -218,15 +220,6 @@ pub use self::local::fast::Key as __FastLocalKeyInner;
218
220
) ) ]
219
221
pub use realstd:: thread:: __FastLocalKeyInner;
220
222
221
- // but import the local one anyway to silence 'unused' warnings
222
- #[ unstable( feature = "libstd_thread_internals" , issue = "none" ) ]
223
- #[ cfg( test) ]
224
- #[ cfg( all(
225
- target_thread_local,
226
- not( all( target_family = "wasm" , not( target_feature = "atomics" ) ) ) ,
227
- ) ) ]
228
- pub use self :: local:: fast:: Key as __FastLocalKeyInnerUnused;
229
-
230
223
#[ unstable( feature = "libstd_thread_internals" , issue = "none" ) ]
231
224
#[ cfg( all(
232
225
not( target_thread_local) ,
You can’t perform that action at this time.
0 commit comments