diff options
| author | bors <bors@rust-lang.org> | 2023-02-26 09:44:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-02-26 09:44:54 +0000 |
| commit | 43ee4d15bf201f72c36abd7f02961df87dead441 (patch) | |
| tree | 129c3d2af19f712f7e2e9204c2e0d1f8a744e499 /compiler/rustc_middle | |
| parent | 70fd012439d75fd6ce561a6518b9b8fd399f455f (diff) | |
| parent | dd73080cc037678410ae7e016298a6bbafaae3a6 (diff) | |
Auto merge of #108375 - Zoxc:query-inline, r=cjgillot
Add inlining attributes for query system functions These only have a single caller, but don't always get inlined.
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index 212dec94130..433c9ab9aa2 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -1012,6 +1012,7 @@ impl<'tcx> TyCtxt<'tcx> { /// Note that this is *untracked* and should only be used within the query /// system if the result is otherwise tracked through queries + #[inline] pub fn cstore_untracked(self) -> MappedReadGuard<'tcx, CrateStoreDyn> { ReadGuard::map(self.untracked.cstore.read(), |c| &**c) } |
