Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed May 15, 2018
1 parent e73fbe3 commit 7e9d43f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/librustc/ty/maps/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ pub struct QueryJob<'tcx> {
/// Diagnostic messages which are emitted while the query executes
pub diagnostics: Lock<Vec<Diagnostic>>,

#[cfg(parallel_queries)]
latch: QueryLatch,
}

Expand All @@ -71,6 +72,7 @@ impl<'tcx> QueryJob<'tcx> {
diagnostics: Lock::new(Vec::new()),
info,
parent,
#[cfg(parallel_queries)]
latch: QueryLatch::new(),
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/librustc/ty/maps/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ use self::plumbing::*;
pub use self::plumbing::{force_from_dep_node, CycleError};

mod job;
pub use self::job::{QueryJob, QueryInfo, handle_deadlock};
pub use self::job::{QueryJob, QueryInfo};
#[cfg(parallel_queries)]
pub use self::job::handle_deadlock;

mod keys;
pub use self::keys::Key;
Expand Down

0 comments on commit 7e9d43f

Please sign in to comment.