about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src/query
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2020-10-11 10:34:50 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-02-19 17:51:49 +0100
commit211b05aef3d71fab0df7aa2f9616286a693a5cd7 (patch)
treee94d4e8bf3a054b84b4eba96c0724cb025c24ee1 /compiler/rustc_query_system/src/query
parent7794fbb47839ed0749647be343c4e52e6564123b (diff)
downloadrust-211b05aef3d71fab0df7aa2f9616286a693a5cd7.tar.gz
rust-211b05aef3d71fab0df7aa2f9616286a693a5cd7.zip
Don't require a QueryContext to access the DepGraph.
Diffstat (limited to 'compiler/rustc_query_system/src/query')
-rw-r--r--compiler/rustc_query_system/src/query/mod.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_query_system/src/query/mod.rs b/compiler/rustc_query_system/src/query/mod.rs
index da45565dbe6..84d4b406c84 100644
--- a/compiler/rustc_query_system/src/query/mod.rs
+++ b/compiler/rustc_query_system/src/query/mod.rs
@@ -14,7 +14,7 @@ pub use self::caches::{
 mod config;
 pub use self::config::{QueryAccessors, QueryConfig, QueryDescription};
 
-use crate::dep_graph::{DepContext, DepGraph};
+use crate::dep_graph::DepContext;
 use crate::query::job::QueryMap;
 
 use rustc_data_structures::stable_hasher::HashStable;
@@ -32,9 +32,6 @@ pub trait QueryContext: DepContext {
     /// Get string representation from DefPath.
     fn def_path_str(&self, def_id: DefId) -> String;
 
-    /// Access the DepGraph.
-    fn dep_graph(&self) -> &DepGraph<Self::DepKind>;
-
     /// Get the query information from the TLS context.
     fn current_query_job(&self) -> Option<QueryJobId<Self::DepKind>>;