Skip to content

Commit

Permalink
Auto merge of #68693 - Zoxc:query-no-arc, r=michaelwoerister
Browse files Browse the repository at this point in the history
Construct query job latches on-demand

r? @michaelwoerister
  • Loading branch information
bors committed Feb 14, 2020
2 parents 1010408 + 5206827 commit 21ed505
Show file tree
Hide file tree
Showing 5 changed files with 323 additions and 161 deletions.
4 changes: 2 additions & 2 deletions src/librustc/ty/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ pub mod tls {

use crate::dep_graph::TaskDeps;
use crate::ty::query;
use rustc_data_structures::sync::{self, Lock, Lrc};
use rustc_data_structures::sync::{self, Lock};
use rustc_data_structures::thin_vec::ThinVec;
use rustc_data_structures::OnDrop;
use rustc_errors::Diagnostic;
Expand All @@ -1637,7 +1637,7 @@ pub mod tls {

/// The current query job, if any. This is updated by `JobOwner::start` in
/// `ty::query::plumbing` when executing a query.
pub query: Option<Lrc<query::QueryJob<'tcx>>>,
pub query: Option<query::QueryJobId>,

/// Where to store diagnostics for the current query job, if any.
/// This is updated by `JobOwner::start` in `ty::query::plumbing` when executing a query.
Expand Down
Loading

0 comments on commit 21ed505

Please sign in to comment.