1
Fork 0

Miscellaneous inlining improvements

Add `#[inline]` to a few trivial non-generic methods from a perf report
that otherwise wouldn't be candidates for inlining.
This commit is contained in:
Tomasz Miąsko 2022-07-07 00:00:00 +00:00
parent 3e51277fe6
commit 87374de3ad
8 changed files with 13 additions and 0 deletions

View file

@ -1042,6 +1042,7 @@ impl<'tcx> Ty<'tcx> {
ty
}
#[inline]
pub fn outer_exclusive_binder(self) -> ty::DebruijnIndex {
self.0.outer_exclusive_binder
}