1
Fork 0

Auto merge of #85892 - tmiasko:i, r=oli-obk

Miscellaneous inlining improvements
This commit is contained in:
bors 2021-06-02 10:47:58 +00:00
commit 1e13a9bb33
17 changed files with 45 additions and 0 deletions

View file

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

View file

@ -2488,6 +2488,7 @@ pub enum FnRetTy<'hir> {
}
impl FnRetTy<'_> {
#[inline]
pub fn span(&self) -> Span {
match *self {
Self::DefaultReturn(span) => span,