about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src/dep_graph/mod.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-10-16 20:24:08 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-10-20 18:29:33 +0200
commit602d3cbce3e6227ad7cd5c009c868c9e405a9f32 (patch)
treec0abedc5c75054147fdf5c4a1feda287dae4958c /compiler/rustc_query_system/src/dep_graph/mod.rs
parentb09de95fab42d3afbcb74185ea1f8a2d200a6353 (diff)
downloadrust-602d3cbce3e6227ad7cd5c009c868c9e405a9f32.tar.gz
rust-602d3cbce3e6227ad7cd5c009c868c9e405a9f32.zip
Invoke callbacks from rustc_middle.
Diffstat (limited to 'compiler/rustc_query_system/src/dep_graph/mod.rs')
-rw-r--r--compiler/rustc_query_system/src/dep_graph/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_query_system/src/dep_graph/mod.rs b/compiler/rustc_query_system/src/dep_graph/mod.rs
index 6a81c401105..d7f7758d02c 100644
--- a/compiler/rustc_query_system/src/dep_graph/mod.rs
+++ b/compiler/rustc_query_system/src/dep_graph/mod.rs
@@ -37,6 +37,12 @@ pub trait DepContext: Copy {
     fn is_eval_always(&self, kind: Self::DepKind) -> bool;
 
     fn fingerprint_style(&self, kind: Self::DepKind) -> FingerprintStyle;
+
+    /// 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;
+
+    /// Load data from the on-disk cache.
+    fn try_load_from_on_disk_cache(&self, dep_node: &DepNode<Self::DepKind>);
 }
 
 pub trait HasDepContext: Copy {