1
Fork 0

Make try_load_from_on_disk_cache a function pointer.

This commit is contained in:
Camille GILLOT 2020-10-27 19:22:58 +01:00
parent 438c430c76
commit bee1fbb67e
3 changed files with 31 additions and 29 deletions

View file

@ -1,5 +1,4 @@
use crate::ich::StableHashingContext;
use crate::ty::query::try_load_from_on_disk_cache;
use crate::ty::{self, TyCtxt};
use rustc_data_structures::profiling::SelfProfilerRef;
use rustc_data_structures::sync::Lock;
@ -169,7 +168,7 @@ impl<'tcx> DepContext for TyCtxt<'tcx> {
// Interactions with on_disk_cache
fn try_load_from_on_disk_cache(&self, dep_node: &DepNode) {
try_load_from_on_disk_cache(*self, dep_node)
(dep_node.kind.try_load_from_on_disk_cache)(*self, dep_node)
}
fn load_diagnostics(&self, prev_dep_node_index: SerializedDepNodeIndex) -> Vec<Diagnostic> {