about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src/query/job.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2020-10-18 21:01:36 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-02-19 17:51:49 +0100
commit49c1b07a9e09af5d01150c53b50676a5bc2e402d (patch)
treed42049e3ba37ae29387b0b5e04e7d43534e90c09 /compiler/rustc_query_system/src/query/job.rs
parent6f048830231380011badb15eee30eb1655485d62 (diff)
downloadrust-49c1b07a9e09af5d01150c53b50676a5bc2e402d.tar.gz
rust-49c1b07a9e09af5d01150c53b50676a5bc2e402d.zip
Decouple QueryContext from DepContext.
Diffstat (limited to 'compiler/rustc_query_system/src/query/job.rs')
-rw-r--r--compiler/rustc_query_system/src/query/job.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_query_system/src/query/job.rs b/compiler/rustc_query_system/src/query/job.rs
index 5fed500390b..0ecc2694a79 100644
--- a/compiler/rustc_query_system/src/query/job.rs
+++ b/compiler/rustc_query_system/src/query/job.rs
@@ -10,7 +10,8 @@ use std::num::NonZeroU32;
 
 #[cfg(parallel_compiler)]
 use {
-    super::QueryContext,
+    crate::dep_graph::DepContext,
+    crate::query::QueryContext,
     parking_lot::{Condvar, Mutex},
     rustc_data_structures::fx::FxHashSet,
     rustc_data_structures::stable_hasher::{HashStable, StableHasher},
@@ -432,7 +433,7 @@ where
 {
     // Deterministically pick an entry point
     // FIXME: Sort this instead
-    let mut hcx = tcx.create_stable_hashing_context();
+    let mut hcx = tcx.dep_context().create_stable_hashing_context();
     queries
         .iter()
         .min_by_key(|v| {