1
Fork 0

Move Sharded maps into each QueryCache impl

This commit is contained in:
Mark Rousskov 2022-02-19 22:44:19 -05:00
parent 3b348d932a
commit 9deed6f74e
8 changed files with 53 additions and 122 deletions

View file

@ -337,7 +337,7 @@ macro_rules! define_queries {
}
#[inline(always)]
fn query_cache<'a>(tcx: QueryCtxt<$tcx>) -> &'a QueryCacheStore<Self::Cache>
fn query_cache<'a>(tcx: QueryCtxt<$tcx>) -> &'a Self::Cache
where 'tcx:'a
{
&tcx.query_caches.$name