Auto merge of #85892 - tmiasko:i, r=oli-obk
Miscellaneous inlining improvements
This commit is contained in:
commit
1e13a9bb33
17 changed files with 45 additions and 0 deletions
|
@ -305,6 +305,7 @@ impl Definitions {
|
|||
self.table.index_to_key.len()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn def_key(&self, id: LocalDefId) -> DefKey {
|
||||
self.table.def_key(id.local_def_index)
|
||||
}
|
||||
|
|
|
@ -2488,6 +2488,7 @@ pub enum FnRetTy<'hir> {
|
|||
}
|
||||
|
||||
impl FnRetTy<'_> {
|
||||
#[inline]
|
||||
pub fn span(&self) -> Span {
|
||||
match *self {
|
||||
Self::DefaultReturn(span) => span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue