diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2020-03-27 07:50:28 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2020-03-27 07:50:28 +0100 |
| commit | 222d01025581174b4f6c1afacf673bc6eade3a6a (patch) | |
| tree | 0a3890fac432a38ad1a457ebdba4d499f521341c /src/librustc_query_system | |
| parent | db5be1fe208d0cbdde750a0eb9f01bbd8afda1ee (diff) | |
Cleanups.
Diffstat (limited to 'src/librustc_query_system')
| -rw-r--r-- | src/librustc_query_system/dep_graph/graph.rs | 3 | ||||
| -rw-r--r-- | src/librustc_query_system/dep_graph/mod.rs | 2 | ||||
| -rw-r--r-- | src/librustc_query_system/lib.rs | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/librustc_query_system/dep_graph/graph.rs b/src/librustc_query_system/dep_graph/graph.rs index 60c5dcda425..73983e1644c 100644 --- a/src/librustc_query_system/dep_graph/graph.rs +++ b/src/librustc_query_system/dep_graph/graph.rs @@ -22,7 +22,6 @@ use super::prev::PreviousDepGraph; use super::query::DepGraphQuery; use super::serialized::{SerializedDepGraph, SerializedDepNodeIndex}; use super::{DepContext, DepKind, DepNode, WorkProductId}; -use crate::HashStableContext; #[derive(Clone)] pub struct DepGraph<K: DepKind> { @@ -259,7 +258,7 @@ impl<K: DepKind> DepGraph<K> { task_deps.map(|lock| lock.into_inner()), ); - let print_status = cfg!(debug_assertions) && hcx.debug_dep_tasks(); + let print_status = cfg!(debug_assertions) && cx.debug_dep_tasks(); // Determine the color of the new DepNode. if let Some(prev_index) = data.previous.node_to_index_opt(&key) { diff --git a/src/librustc_query_system/dep_graph/mod.rs b/src/librustc_query_system/dep_graph/mod.rs index f215dadc660..232efa8795d 100644 --- a/src/librustc_query_system/dep_graph/mod.rs +++ b/src/librustc_query_system/dep_graph/mod.rs @@ -27,6 +27,8 @@ 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; + /// Try to force a dep node to execute and see if it's green. fn try_force_from_dep_node(&self, dep_node: &DepNode<Self::DepKind>) -> bool; diff --git a/src/librustc_query_system/lib.rs b/src/librustc_query_system/lib.rs index 1f7fde642eb..6623e74b5cb 100644 --- a/src/librustc_query_system/lib.rs +++ b/src/librustc_query_system/lib.rs @@ -16,6 +16,4 @@ extern crate rustc_data_structures; pub mod dep_graph; pub mod query; -pub trait HashStableContext { - fn debug_dep_tasks(&self) -> bool; -} +pub trait HashStableContext {} |
