diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2020-11-12 20:48:37 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-02-20 22:53:46 +0100 |
| commit | f96e960ccfa92895217562ede43043405194eab0 (patch) | |
| tree | 04e883ddf732fbdcc85c0f754d4bf617225faa5a /compiler/rustc_query_system/src/dep_graph/mod.rs | |
| parent | 83b30a639d5abd1270ade35d9bd92271f5a5ba18 (diff) | |
| download | rust-f96e960ccfa92895217562ede43043405194eab0.tar.gz rust-f96e960ccfa92895217562ede43043405194eab0.zip | |
Access the session directly from DepContext.
Diffstat (limited to 'compiler/rustc_query_system/src/dep_graph/mod.rs')
| -rw-r--r-- | compiler/rustc_query_system/src/dep_graph/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/rustc_query_system/src/dep_graph/mod.rs b/compiler/rustc_query_system/src/dep_graph/mod.rs index a647381fb03..e8fb71be3e0 100644 --- a/compiler/rustc_query_system/src/dep_graph/mod.rs +++ b/compiler/rustc_query_system/src/dep_graph/mod.rs @@ -13,6 +13,7 @@ pub use serialized::{SerializedDepGraph, SerializedDepNodeIndex}; use rustc_data_structures::profiling::SelfProfilerRef; use rustc_data_structures::sync::Lock; +use rustc_session::Session; use std::fmt; use std::hash::Hash; @@ -24,9 +25,6 @@ pub trait DepContext: Copy { /// Create a hashing context for hashing new results. fn create_stable_hashing_context(&self) -> Self::StableHashingContext; - fn debug_dep_tasks(&self) -> bool; - fn debug_dep_node(&self) -> bool; - /// Access the DepGraph. fn dep_graph(&self) -> &DepGraph<Self::DepKind>; @@ -34,6 +32,9 @@ pub trait DepContext: Copy { /// Access the profiler. fn profiler(&self) -> &SelfProfilerRef; + + /// Access the compiler session. + fn sess(&self) -> &Session; } pub trait HasDepContext: Copy { |
