Skip to content

Commit

Permalink
Auto merge of #82197 - tmiasko:try-get-cached, r=cjgillot
Browse files Browse the repository at this point in the history
Inline try_get_cached
  • Loading branch information
bors committed Feb 17, 2021
2 parents 8fe989d + db36db2 commit ee88f46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_query_system/src/query/plumbing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit ee88f46

Please sign in to comment.