diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-10-16 20:24:08 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-10-20 18:29:33 +0200 |
| commit | 602d3cbce3e6227ad7cd5c009c868c9e405a9f32 (patch) | |
| tree | c0abedc5c75054147fdf5c4a1feda287dae4958c /compiler/rustc_query_system/src/dep_graph/mod.rs | |
| parent | b09de95fab42d3afbcb74185ea1f8a2d200a6353 (diff) | |
| download | rust-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.rs | 6 |
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 { |
