Skip to content

Commit be52b4a

Browse files
committed
Auto merge of #94928 - lcnr:inline-as_substs, r=michaelwoerister
inline `tuple_fields` more #93505 fun, after this i have no idea what might be causing the perf impact.
2 parents 0407030 + 423600d commit be52b4a

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+1
-0
lines changed

Diff for: compiler/rustc_middle/src/ty/sty.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2162,6 +2162,7 @@ impl<'tcx> Ty<'tcx> {
21622162

21632163
/// Iterates over tuple fields.
21642164
/// Panics when called on anything but a tuple.
2165+
#[inline]
21652166
pub fn tuple_fields(self) -> &'tcx List<Ty<'tcx>> {
21662167
match self.kind() {
21672168
Tuple(substs) => substs,

0 commit comments

Comments
 (0)