about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-02-27 12:01:44 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-02-27 12:01:44 +1100
commitcc783862b01467f4683e830d0e12b52b3684b898 (patch)
tree2ba083911a0e7d3faed7cad338b9f5eeda5b35af
parent00f245915b0c7839d42c26f9628220c4f1b93bf6 (diff)
downloadrust-cc783862b01467f4683e830d0e12b52b3684b898.tar.gz
rust-cc783862b01467f4683e830d0e12b52b3684b898.zip
Always inline `query_get_at`.
-rw-r--r--compiler/rustc_middle/src/query/plumbing.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/query/plumbing.rs b/compiler/rustc_middle/src/query/plumbing.rs
index 690b8128b1a..3857ee83a0f 100644
--- a/compiler/rustc_middle/src/query/plumbing.rs
+++ b/compiler/rustc_middle/src/query/plumbing.rs
@@ -165,7 +165,7 @@ impl<'tcx> TyCtxt<'tcx> {
     }
 }
 
-#[inline]
+#[inline(always)]
 pub fn query_get_at<'tcx, Cache>(
     tcx: TyCtxt<'tcx>,
     execute_query: fn(TyCtxt<'tcx>, Span, Cache::Key, QueryMode) -> Option<Cache::Value>,