]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_query_system/src/query/config.rs
Move Sharded maps into each QueryCache impl
[rust.git] / compiler / rustc_query_system / src / query / config.rs
index b1ff1e15a9db53e0367d0fc895f2056c78c809ac..1ffcdbce6fc8ef1c6835b02979170d1f3bd72172 100644 (file)
@@ -4,7 +4,7 @@
 use crate::dep_graph::SerializedDepNodeIndex;
 use crate::ich::StableHashingContext;
 use crate::query::caches::QueryCache;
-use crate::query::{QueryCacheStore, QueryContext, QueryState};
+use crate::query::{QueryContext, QueryState};
 
 use rustc_data_structures::fingerprint::Fingerprint;
 use rustc_errors::DiagnosticBuilder;
@@ -64,7 +64,7 @@ fn query_state<'a>(tcx: CTX) -> &'a QueryState<Self::Key>
         CTX: 'a;
 
     // Don't use this method to access query results, instead use the methods on TyCtxt
-    fn query_cache<'a>(tcx: CTX) -> &'a QueryCacheStore<Self::Cache>
+    fn query_cache<'a>(tcx: CTX) -> &'a Self::Cache
     where
         CTX: 'a;