1
Fork 0

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.
This commit is contained in:
bors 2023-02-26 09:44:54 +00:00
commit 43ee4d15bf
4 changed files with 24 additions and 22 deletions

View file

@ -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)
}