From 423600dd6576193def8cd9a87525045143cd5105 Mon Sep 17 00:00:00 2001 From: lcnr Date: Mon, 14 Mar 2022 11:46:32 +0100 Subject: [PATCH] inline `tuple_fields` --- compiler/rustc_middle/src/ty/sty.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_middle/src/ty/sty.rs b/compiler/rustc_middle/src/ty/sty.rs index a49189ae92afb..c998a7d294d89 100644 --- a/compiler/rustc_middle/src/ty/sty.rs +++ b/compiler/rustc_middle/src/ty/sty.rs @@ -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> { match self.kind() { Tuple(substs) => substs,