File tree 5 files changed +16
-14
lines changed
5 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,10 @@ harness = false
134
134
name = " floats"
135
135
path = " tests/floats/lib.rs"
136
136
137
+ [[test ]]
138
+ name = " thread_local"
139
+ path = " tests/thread_local/lib.rs"
140
+
137
141
[[bench ]]
138
142
name = " stdbenches"
139
143
path = " benches/lib.rs"
Original file line number Diff line number Diff line change 2
2
3
3
#![ unstable( feature = "thread_local_internals" , issue = "none" ) ]
4
4
5
- #[ cfg( all( test, not( any( target_os = "emscripten" , target_os = "wasi" ) ) ) ) ]
6
- mod tests;
7
-
8
- #[ cfg( test) ]
9
- mod dynamic_tests;
10
-
11
5
use crate :: cell:: { Cell , RefCell } ;
12
6
use crate :: error:: Error ;
13
7
use crate :: fmt;
Original file line number Diff line number Diff line change 1
- use crate :: cell:: RefCell ;
2
- use crate :: collections:: HashMap ;
3
- use crate :: thread_local;
1
+ use std :: cell:: RefCell ;
2
+ use std :: collections:: HashMap ;
3
+ use std :: thread_local;
4
4
5
5
#[ test]
6
6
fn smoke ( ) {
Original file line number Diff line number Diff line change
1
+ #[ cfg( not( any( target_os = "emscripten" , target_os = "wasi" ) ) ) ]
2
+ mod tests;
3
+
4
+ mod dynamic_tests;
Original file line number Diff line number Diff line change 1
- use crate :: cell:: { Cell , UnsafeCell } ;
2
- use crate :: sync:: atomic:: { AtomicU8 , Ordering } ;
3
- use crate :: sync:: { Arc , Condvar , Mutex } ;
4
- use crate :: thread:: { self , Builder , LocalKey } ;
5
- use crate :: thread_local;
1
+ use std :: cell:: { Cell , UnsafeCell } ;
2
+ use std :: sync:: atomic:: { AtomicU8 , Ordering } ;
3
+ use std :: sync:: { Arc , Condvar , Mutex } ;
4
+ use std :: thread:: { self , Builder , LocalKey } ;
5
+ use std :: thread_local;
6
6
7
7
#[ derive( Clone , Default ) ]
8
8
struct Signal ( Arc < ( Mutex < bool > , Condvar ) > ) ;
You can’t perform that action at this time.
0 commit comments