Skip to content

Commit 77ab0d0

Browse files
committed
Construct query job latches on-demand
1 parent e6db669 commit 77ab0d0

File tree

4 files changed

+275
-151
lines changed

4 files changed

+275
-151
lines changed

src/librustc/ty/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ pub mod tls {
16081608

16091609
use crate::dep_graph::TaskDeps;
16101610
use crate::ty::query;
1611-
use rustc_data_structures::sync::{self, Lock, Lrc};
1611+
use rustc_data_structures::sync::{self, Lock};
16121612
use rustc_data_structures::thin_vec::ThinVec;
16131613
use rustc_data_structures::OnDrop;
16141614
use rustc_errors::Diagnostic;
@@ -1633,7 +1633,7 @@ pub mod tls {
16331633

16341634
/// The current query job, if any. This is updated by `JobOwner::start` in
16351635
/// `ty::query::plumbing` when executing a query.
1636-
pub query: Option<Lrc<query::QueryJob<'tcx>>>,
1636+
pub query: Option<query::QueryToken>,
16371637

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

0 commit comments

Comments
 (0)