Skip to content

Commit 423600d

Browse files
committed
inline tuple_fields
1 parent 3f58828 commit 423600d

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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)