File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 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> {
6161 /// Diagnostic messages which are emitted while the query executes
6262 pub diagnostics : Lock < Vec < Diagnostic > > ,
6363
64+ #[ cfg( parallel_queries) ]
6465 latch : QueryLatch ,
6566}
6667
@@ -71,6 +72,7 @@ impl<'tcx> QueryJob<'tcx> {
7172 diagnostics : Lock :: new ( Vec :: new ( ) ) ,
7273 info,
7374 parent,
75+ #[ cfg( parallel_queries) ]
7476 latch : QueryLatch :: new ( ) ,
7577 }
7678 }
Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ use self::plumbing::*;
6666pub use self :: plumbing:: { force_from_dep_node, CycleError } ;
6767
6868mod 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;
7072
7173mod keys;
7274pub use self :: keys:: Key ;
You can’t perform that action at this time.
0 commit comments