about summary refs log tree commit diff
path: root/compiler/rustc_query_system
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-02-16 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-02-16 00:00:00 +0000
commitdb36db2e8143fba80e8cc2c1ba2e00383a82f9ae (patch)
tree983eab27d70c48998a6ef94fac88b0f467259380 /compiler/rustc_query_system
parent9d3deed8a2f7dca16869ccd03a8e328ef627e6eb (diff)
downloadrust-db36db2e8143fba80e8cc2c1ba2e00383a82f9ae.tar.gz
rust-db36db2e8143fba80e8cc2c1ba2e00383a82f9ae.zip
Inline try_get_cached
Diffstat (limited to 'compiler/rustc_query_system')
-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>,