From b6720ad23cdc85ca99d424b1d9be60ce0af8cdd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A5re=20Alsaker?= Date: Sun, 30 Apr 2023 09:44:55 +0200 Subject: [PATCH] Always inline query_get_at and query_ensure --- compiler/rustc_middle/src/ty/query.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_middle/src/ty/query.rs b/compiler/rustc_middle/src/ty/query.rs index 07d47cae5ee93..58b04b81465a4 100644 --- a/compiler/rustc_middle/src/ty/query.rs +++ b/compiler/rustc_middle/src/ty/query.rs @@ -202,7 +202,7 @@ impl<'tcx> TyCtxt<'tcx> { } } -#[inline] +#[inline(always)] fn query_get_at<'tcx, Cache>( tcx: TyCtxt<'tcx>, execute_query: fn(TyCtxt<'tcx>, Span, Cache::Key, QueryMode) -> Option, @@ -220,7 +220,7 @@ where } } -#[inline] +#[inline(always)] fn query_ensure<'tcx, Cache>( tcx: TyCtxt<'tcx>, execute_query: fn(TyCtxt<'tcx>, Span, Cache::Key, QueryMode) -> Option,