about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-02-17 04:07:35 +0000
committerbors <bors@rust-lang.org>2021-02-17 04:07:35 +0000
commitee88f46bb5e27c4d9f30326e69ff2298dcbeecb1 (patch)
tree21cf553851b37ef70f03a8123e75698f98443ce6 /compiler
parent8fe989dd768f5dfdb0fc90933f3f74fa4579fefd (diff)
parentdb36db2e8143fba80e8cc2c1ba2e00383a82f9ae (diff)
downloadrust-ee88f46bb5e27c4d9f30326e69ff2298dcbeecb1.tar.gz
rust-ee88f46bb5e27c4d9f30326e69ff2298dcbeecb1.zip
Auto merge of #82197 - tmiasko:try-get-cached, r=cjgillot
Inline try_get_cached
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_query_system/src/query/plumbing.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_query_system/src/query/plumbing.rs b/compiler/rustc_query_system/src/query/plumbing.rs
index 2610ce83e4d..4242324b968 100644
--- a/compiler/rustc_query_system/src/query/plumbing.rs
+++ b/compiler/rustc_query_system/src/query/plumbing.rs
@@ -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>,