mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Inline try_get_cached
This commit is contained in:
parent
9d3deed8a2
commit
db36db2e81
@ -385,6 +385,7 @@ where
|
||||
/// 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]
|
||||
pub fn try_get_cached<'a, CTX, C, R, OnHit>(
|
||||
tcx: CTX,
|
||||
cache: &'a QueryCacheStore<C>,
|
||||
|
Loading…
Reference in New Issue
Block a user