diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2020-10-11 10:34:50 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-02-19 17:51:49 +0100 |
| commit | 211b05aef3d71fab0df7aa2f9616286a693a5cd7 (patch) | |
| tree | e94d4e8bf3a054b84b4eba96c0724cb025c24ee1 /compiler/rustc_query_system/src/query | |
| parent | 7794fbb47839ed0749647be343c4e52e6564123b (diff) | |
| download | rust-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.rs | 5 |
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>>; |
