@@ -837,6 +837,7 @@ impl<'tcx> TypeVisitor<'tcx> for HasEscapingVarsVisitor {
837837 result
838838 }
839839
840+ #[ inline]
840841 fn visit_ty ( & mut self , t : Ty < ' tcx > ) -> ControlFlow < Self :: BreakTy > {
841842 // If the outer-exclusive-binder is *strictly greater* than
842843 // `outer_index`, that means that `t` contains some content
@@ -850,6 +851,7 @@ impl<'tcx> TypeVisitor<'tcx> for HasEscapingVarsVisitor {
850851 }
851852 }
852853
854+ #[ inline]
853855 fn visit_region ( & mut self , r : ty:: Region < ' tcx > ) -> ControlFlow < Self :: BreakTy > {
854856 // If the region is bound by `outer_index` or anything outside
855857 // of outer index, then it escapes the binders we have
@@ -875,6 +877,7 @@ impl<'tcx> TypeVisitor<'tcx> for HasEscapingVarsVisitor {
875877 }
876878 }
877879
880+ #[ inline]
878881 fn visit_predicate ( & mut self , predicate : ty:: Predicate < ' tcx > ) -> ControlFlow < Self :: BreakTy > {
879882 if predicate. inner . outer_exclusive_binder > self . outer_index {
880883 ControlFlow :: Break ( FoundEscapingVars )
@@ -895,6 +898,7 @@ struct HasTypeFlagsVisitor {
895898impl < ' tcx > TypeVisitor < ' tcx > for HasTypeFlagsVisitor {
896899 type BreakTy = FoundFlags ;
897900
901+ #[ inline]
898902 fn visit_ty ( & mut self , t : Ty < ' _ > ) -> ControlFlow < Self :: BreakTy > {
899903 debug ! (
900904 "HasTypeFlagsVisitor: t={:?} t.flags={:?} self.flags={:?}" ,
@@ -909,6 +913,7 @@ impl<'tcx> TypeVisitor<'tcx> for HasTypeFlagsVisitor {
909913 }
910914 }
911915
916+ #[ inline]
912917 fn visit_region ( & mut self , r : ty:: Region < ' tcx > ) -> ControlFlow < Self :: BreakTy > {
913918 let flags = r. type_flags ( ) ;
914919 debug ! ( "HasTypeFlagsVisitor: r={:?} r.flags={:?} self.flags={:?}" , r, flags, self . flags) ;
@@ -919,6 +924,7 @@ impl<'tcx> TypeVisitor<'tcx> for HasTypeFlagsVisitor {
919924 }
920925 }
921926
927+ #[ inline]
922928 fn visit_const ( & mut self , c : & ' tcx ty:: Const < ' tcx > ) -> ControlFlow < Self :: BreakTy > {
923929 let flags = FlagComputation :: for_const ( c) ;
924930 debug ! ( "HasTypeFlagsVisitor: c={:?} c.flags={:?} self.flags={:?}" , c, flags, self . flags) ;
@@ -929,6 +935,7 @@ impl<'tcx> TypeVisitor<'tcx> for HasTypeFlagsVisitor {
929935 }
930936 }
931937
938+ #[ inline]
932939 fn visit_predicate ( & mut self , predicate : ty:: Predicate < ' tcx > ) -> ControlFlow < Self :: BreakTy > {
933940 debug ! (
934941 "HasTypeFlagsVisitor: predicate={:?} predicate.flags={:?} self.flags={:?}" ,
0 commit comments