Skip to content

Commit db36db2

Browse files
committed
Inline try_get_cached
1 parent 9d3deed commit db36db2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_query_system/src/query/plumbing.rs

+1
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ where
385385
/// It returns the shard index and a lock guard to the shard,
386386
/// which will be used if the query is not in the cache and we need
387387
/// to compute it.
388+
#[inline]
388389
pub fn try_get_cached<'a, CTX, C, R, OnHit>(
389390
tcx: CTX,
390391
cache: &'a QueryCacheStore<C>,

0 commit comments

Comments
 (0)