File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ pub struct QueryJob<'tcx> {
61
61
/// Diagnostic messages which are emitted while the query executes
62
62
pub diagnostics : Lock < Vec < Diagnostic > > ,
63
63
64
+ #[ cfg( parallel_queries) ]
64
65
latch : QueryLatch ,
65
66
}
66
67
@@ -71,6 +72,7 @@ impl<'tcx> QueryJob<'tcx> {
71
72
diagnostics : Lock :: new ( Vec :: new ( ) ) ,
72
73
info,
73
74
parent,
75
+ #[ cfg( parallel_queries) ]
74
76
latch : QueryLatch :: new ( ) ,
75
77
}
76
78
}
Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ use self::plumbing::*;
66
66
pub use self :: plumbing:: { force_from_dep_node, CycleError } ;
67
67
68
68
mod job;
69
- pub use self :: job:: { QueryJob , QueryInfo , handle_deadlock} ;
69
+ pub use self :: job:: { QueryJob , QueryInfo } ;
70
+ #[ cfg( parallel_queries) ]
71
+ pub use self :: job:: handle_deadlock;
70
72
71
73
mod keys;
72
74
pub use self :: keys:: Key ;
You can’t perform that action at this time.
0 commit comments