diff options
| author | bors <bors@rust-lang.org> | 2025-03-09 21:36:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-03-09 21:36:57 +0000 |
| commit | 2b4694a69804f89ff9d47d1a427f72c876f7f44c (patch) | |
| tree | 0ac5ec2f1e001ef5eba49f001d7a42ba3c02fec5 | |
| parent | 3ea711f17e3946ac3f4df11691584e2c56b4b0cf (diff) | |
| parent | cc783862b01467f4683e830d0e12b52b3684b898 (diff) | |
| download | rust-2b4694a69804f89ff9d47d1a427f72c876f7f44c.tar.gz rust-2b4694a69804f89ff9d47d1a427f72c876f7f44c.zip | |
Auto merge of #137695 - nnethercote:always-inline-query_get_at, r=saethlin
Always inline `query_get_at`. r? `@saethlin`
| -rw-r--r-- | compiler/rustc_middle/src/query/plumbing.rs | 2 |
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 d78a589f203..4834444ed1d 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>, |
