1
Fork 0

Add query accessor functions

This commit is contained in:
John Kåre Alsaker 2023-03-25 11:47:23 +01:00
parent 66d85438ca
commit 4440e8196a
2 changed files with 56 additions and 33 deletions

View file

@ -236,7 +236,7 @@ pub(crate) struct CycleError<D: DepKind> {
/// It returns the shard index and a lock guard to the shard,
/// which will be used if the query is not in the cache and we need
/// to compute it.
#[inline]
#[inline(always)]
pub fn try_get_cached<Tcx, C>(tcx: Tcx, cache: &C, key: &C::Key) -> Option<C::Value>
where
C: QueryCache,