File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/librustc_data_structures Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ use std::marker::PhantomData;
36
36
use std:: fmt:: Debug ;
37
37
use std:: fmt:: Formatter ;
38
38
use std:: fmt;
39
- use std;
40
39
use std:: ops:: { Deref , DerefMut } ;
41
40
use owning_ref:: { Erased , OwningRef } ;
42
41
@@ -200,6 +199,7 @@ cfg_if! {
200
199
use parking_lot:: Mutex as InnerLock ;
201
200
use parking_lot:: RwLock as InnerRwLock ;
202
201
202
+ use std;
203
203
use std:: thread;
204
204
pub use rayon:: { join, scope} ;
205
205
@@ -638,7 +638,9 @@ pub struct OneThread<T> {
638
638
inner : T ,
639
639
}
640
640
641
+ #[ cfg( parallel_queries) ]
641
642
unsafe impl < T > std:: marker:: Sync for OneThread < T > { }
643
+ #[ cfg( parallel_queries) ]
642
644
unsafe impl < T > std:: marker:: Send for OneThread < T > { }
643
645
644
646
impl < T > OneThread < T > {
You can’t perform that action at this time.
0 commit comments