Skip to content

Commit 7e9d43f

Browse files
committedMay 15, 2018
fix
1 parent e73fbe3 commit 7e9d43f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎src/librustc/ty/maps/job.rs

+2
Original file line numberDiff line numberDiff 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
}

‎src/librustc/ty/maps/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ use self::plumbing::*;
6666
pub use self::plumbing::{force_from_dep_node, CycleError};
6767

6868
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;
7072

7173
mod keys;
7274
pub use self::keys::Key;

0 commit comments

Comments
 (0)
Please sign in to comment.