mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
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
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user