Move try_load_from_on_disk_cache to the QueryContext.
This commit is contained in:
parent
4dbf83a209
commit
ea3d465c95
7 changed files with 22 additions and 16 deletions
|
@ -180,10 +180,6 @@ impl<'tcx> DepContext for TyCtxt<'tcx> {
|
|||
}
|
||||
|
||||
// Interactions with on_disk_cache
|
||||
fn try_load_from_on_disk_cache(&self, dep_node: &DepNode) {
|
||||
(dep_node.kind.try_load_from_on_disk_cache)(*self, dep_node)
|
||||
}
|
||||
|
||||
fn load_diagnostics(&self, prev_dep_node_index: SerializedDepNodeIndex) -> Vec<Diagnostic> {
|
||||
self.on_disk_cache
|
||||
.as_ref()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue