From db36db2e8143fba80e8cc2c1ba2e00383a82f9ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Tue, 16 Feb 2021 00:00:00 +0000 Subject: [PATCH] Inline try_get_cached --- compiler/rustc_query_system/src/query/plumbing.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_query_system/src/query/plumbing.rs b/compiler/rustc_query_system/src/query/plumbing.rs index 2610ce83e4d3e..4242324b9686c 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,