Auto merge of #94928 - lcnr:inline-as_substs, r=michaelwoerister
inline `tuple_fields` more https://github.com/rust-lang/rust/pull/93505 fun, after this i have no idea what might be causing the perf impact.
This commit is contained in:
commit
be52b4af5e
1 changed files with 1 additions and 0 deletions
|
@ -2162,6 +2162,7 @@ impl<'tcx> Ty<'tcx> {
|
||||||
|
|
||||||
/// Iterates over tuple fields.
|
/// Iterates over tuple fields.
|
||||||
/// Panics when called on anything but a tuple.
|
/// Panics when called on anything but a tuple.
|
||||||
|
#[inline]
|
||||||
pub fn tuple_fields(self) -> &'tcx List<Ty<'tcx>> {
|
pub fn tuple_fields(self) -> &'tcx List<Ty<'tcx>> {
|
||||||
match self.kind() {
|
match self.kind() {
|
||||||
Tuple(substs) => substs,
|
Tuple(substs) => substs,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue