Skip to content

Commit ee88f46

Browse files
committed
Auto merge of #82197 - tmiasko:try-get-cached, r=cjgillot
Inline try_get_cached
2 parents 8fe989d + db36db2 commit ee88f46

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)