File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 5
5
#[ cfg( not( target_thread_local) ) ]
6
6
struct Key < T > {
7
7
_data : std:: cell:: UnsafeCell < Option < T > > ,
8
- _flag : std:: cell:: Cell < bool > ,
8
+ _flag : std:: cell:: Cell < ( ) > ,
9
9
}
10
10
11
11
#[ cfg( not( target_thread_local) ) ]
12
12
impl < T > Key < T > {
13
13
const fn new ( ) -> Self {
14
14
Key {
15
15
_data : std:: cell:: UnsafeCell :: new ( None ) ,
16
- _flag : std:: cell:: Cell :: new ( false ) ,
16
+ _flag : std:: cell:: Cell :: new ( ( ) ) ,
17
17
}
18
18
}
19
19
}
@@ -23,7 +23,6 @@ use std::thread::__FastLocalKeyInner as Key;
23
23
24
24
static __KEY: Key < ( ) > = Key :: new ( ) ;
25
25
//~^ ERROR `std::cell::UnsafeCell<std::option::Option<()>>` cannot be shared between threads
26
- //~| ERROR `std::cell::Cell<std::thread::local::fast::DtorState>` cannot be shared between threads
27
- // safely [E0277]
26
+ //~| ERROR cannot be shared between threads safely [E0277]
28
27
29
28
fn main ( ) { }
You can’t perform that action at this time.
0 commit comments