File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 55#[ cfg( not( target_thread_local) ) ]
66struct Key < T > {
77 _data : std:: cell:: UnsafeCell < Option < T > > ,
8- _flag : std:: cell:: Cell < bool > ,
8+ _flag : std:: cell:: Cell < ( ) > ,
99}
1010
1111#[ cfg( not( target_thread_local) ) ]
1212impl < T > Key < T > {
1313 const fn new ( ) -> Self {
1414 Key {
1515 _data : std:: cell:: UnsafeCell :: new ( None ) ,
16- _flag : std:: cell:: Cell :: new ( false ) ,
16+ _flag : std:: cell:: Cell :: new ( ( ) ) ,
1717 }
1818 }
1919}
@@ -23,7 +23,6 @@ use std::thread::__FastLocalKeyInner as Key;
2323
2424static __KEY: Key < ( ) > = Key :: new ( ) ;
2525//~^ 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]
2827
2928fn main ( ) { }
You can’t perform that action at this time.
0 commit comments