1
Fork 0

Move try_load_from_on_disk_cache to the QueryContext.

This commit is contained in:
Camille GILLOT 2021-01-05 18:37:42 +01:00
parent 4dbf83a209
commit ea3d465c95
7 changed files with 22 additions and 16 deletions

View file

@ -43,9 +43,6 @@ pub trait DepContext: Copy {
/// Return the diagnostic handler.
fn diagnostic(&self) -> &rustc_errors::Handler;
/// Load data from the on-disk cache.
fn try_load_from_on_disk_cache(&self, dep_node: &DepNode<Self::DepKind>);
/// Load diagnostics associated to the node in the previous session.
fn load_diagnostics(&self, prev_dep_node_index: SerializedDepNodeIndex) -> Vec<Diagnostic>;