inline tuple_fields
This commit is contained in:
parent
3f58828fdc
commit
423600dd65
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue