diff options
| author | bors <bors@rust-lang.org> | 2022-03-15 13:14:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-03-15 13:14:13 +0000 |
| commit | be52b4af5ec7e49572cb16519b7e144d6bcb051d (patch) | |
| tree | 7a773fa1a94cc0b3e793f46b65eff9dc26ea12d9 | |
| parent | 040703018c51409ea8c9a0cfb8f829a138d2a411 (diff) | |
| parent | 423600dd6576193def8cd9a87525045143cd5105 (diff) | |
| download | rust-be52b4af5ec7e49572cb16519b7e144d6bcb051d.tar.gz rust-be52b4af5ec7e49572cb16519b7e144d6bcb051d.zip | |
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.
| -rw-r--r-- | compiler/rustc_middle/src/ty/sty.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/ty/sty.rs b/compiler/rustc_middle/src/ty/sty.rs index e89f68fd0ea..b5bc4893ef3 100644 --- a/compiler/rustc_middle/src/ty/sty.rs +++ b/compiler/rustc_middle/src/ty/sty.rs @@ -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, |
