Skip to content

Commit

Permalink
inline tuple_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Mar 14, 2022
1 parent 3f58828 commit 423600d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_middle/src/ty/sty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 423600d

Please sign in to comment.