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:
bors 2022-03-15 13:14:13 +00:00
commit be52b4af5e

View File

@ -2162,6 +2162,7 @@ impl<'tcx> Ty<'tcx> {
/// Iterates over tuple fields.
/// Panics when called on anything but a tuple.
#[inline]
pub fn tuple_fields(self) -> &'tcx List<Ty<'tcx>> {
match self.kind() {
Tuple(substs) => substs,