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:
commit
43ee4d15bf
4 changed files with 24 additions and 22 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue