Make try_load_from_on_disk_cache a function pointer.
This commit is contained in:
parent
438c430c76
commit
bee1fbb67e
3 changed files with 31 additions and 29 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue