mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Auto merge of #82197 - tmiasko:try-get-cached, r=cjgillot
Inline try_get_cached
This commit is contained in:
commit
ee88f46bb5
@ -385,6 +385,7 @@ where
|
|||||||
/// It returns the shard index and a lock guard to the shard,
|
/// 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
|
/// which will be used if the query is not in the cache and we need
|
||||||
/// to compute it.
|
/// to compute it.
|
||||||
|
#[inline]
|
||||||
pub fn try_get_cached<'a, CTX, C, R, OnHit>(
|
pub fn try_get_cached<'a, CTX, C, R, OnHit>(
|
||||||
tcx: CTX,
|
tcx: CTX,
|
||||||
cache: &'a QueryCacheStore<C>,
|
cache: &'a QueryCacheStore<C>,
|
||||||
|
Loading…
Reference in New Issue
Block a user