@@ -371,6 +371,7 @@ impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for Ty<'tcx> {
371371}
372372
373373impl < ' tcx > TypeSuperFoldable < TyCtxt < ' tcx > > for Ty < ' tcx > {
374+ #[ inline]
374375 fn try_super_fold_with < F : FallibleTypeFolder < TyCtxt < ' tcx > > > (
375376 self ,
376377 folder : & mut F ,
@@ -419,6 +420,7 @@ impl<'tcx> TypeSuperFoldable<TyCtxt<'tcx>> for Ty<'tcx> {
419420 Ok ( if * self . kind ( ) == kind { self } else { folder. cx ( ) . mk_ty_from_kind ( kind) } )
420421 }
421422
423+ #[ inline]
422424 fn super_fold_with < F : TypeFolder < TyCtxt < ' tcx > > > ( self , folder : & mut F ) -> Self {
423425 let kind = match * self . kind ( ) {
424426 ty:: RawPtr ( ty, mutbl) => ty:: RawPtr ( ty. fold_with ( folder) , mutbl) ,
@@ -460,6 +462,7 @@ impl<'tcx> TypeSuperFoldable<TyCtxt<'tcx>> for Ty<'tcx> {
460462}
461463
462464impl < ' tcx > TypeSuperVisitable < TyCtxt < ' tcx > > for Ty < ' tcx > {
465+ #[ inline]
463466 fn super_visit_with < V : TypeVisitor < TyCtxt < ' tcx > > > ( & self , visitor : & mut V ) -> V :: Result {
464467 match self . kind ( ) {
465468 ty:: RawPtr ( ty, _mutbl) => ty. visit_with ( visitor) ,
@@ -582,6 +585,7 @@ impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for ty::Clause<'tcx> {
582585}
583586
584587impl < ' tcx > TypeSuperFoldable < TyCtxt < ' tcx > > for ty:: Predicate < ' tcx > {
588+ #[ inline]
585589 fn try_super_fold_with < F : FallibleTypeFolder < TyCtxt < ' tcx > > > (
586590 self ,
587591 folder : & mut F ,
@@ -596,6 +600,7 @@ impl<'tcx> TypeSuperFoldable<TyCtxt<'tcx>> for ty::Predicate<'tcx> {
596600 Ok ( folder. cx ( ) . reuse_or_mk_predicate ( self , new) )
597601 }
598602
603+ #[ inline]
599604 fn super_fold_with < F : TypeFolder < TyCtxt < ' tcx > > > ( self , folder : & mut F ) -> Self {
600605 // See comment in `Predicate::try_super_fold_with`.
601606 let new = self . kind ( ) . fold_with ( folder) ;
@@ -604,6 +609,7 @@ impl<'tcx> TypeSuperFoldable<TyCtxt<'tcx>> for ty::Predicate<'tcx> {
604609}
605610
606611impl < ' tcx > TypeSuperVisitable < TyCtxt < ' tcx > > for ty:: Predicate < ' tcx > {
612+ #[ inline]
607613 fn super_visit_with < V : TypeVisitor < TyCtxt < ' tcx > > > ( & self , visitor : & mut V ) -> V :: Result {
608614 // See comment in `Predicate::try_super_fold_with`.
609615 self . kind ( ) . visit_with ( visitor)
@@ -617,19 +623,22 @@ impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for ty::Clauses<'tcx> {
617623}
618624
619625impl < ' tcx > TypeSuperVisitable < TyCtxt < ' tcx > > for ty:: Clauses < ' tcx > {
626+ #[ inline]
620627 fn super_visit_with < V : TypeVisitor < TyCtxt < ' tcx > > > ( & self , visitor : & mut V ) -> V :: Result {
621628 self . as_slice ( ) . visit_with ( visitor)
622629 }
623630}
624631
625632impl < ' tcx > TypeSuperFoldable < TyCtxt < ' tcx > > for ty:: Clauses < ' tcx > {
633+ #[ inline]
626634 fn try_super_fold_with < F : FallibleTypeFolder < TyCtxt < ' tcx > > > (
627635 self ,
628636 folder : & mut F ,
629637 ) -> Result < Self , F :: Error > {
630638 ty:: util:: try_fold_list ( self , folder, |tcx, v| tcx. mk_clauses ( v) )
631639 }
632640
641+ #[ inline]
633642 fn super_fold_with < F : TypeFolder < TyCtxt < ' tcx > > > ( self , folder : & mut F ) -> Self {
634643 ty:: util:: fold_list ( self , folder, |tcx, v| tcx. mk_clauses ( v) )
635644 }
@@ -655,6 +664,7 @@ impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for ty::Const<'tcx> {
655664}
656665
657666impl < ' tcx > TypeSuperFoldable < TyCtxt < ' tcx > > for ty:: Const < ' tcx > {
667+ #[ inline]
658668 fn try_super_fold_with < F : FallibleTypeFolder < TyCtxt < ' tcx > > > (
659669 self ,
660670 folder : & mut F ,
@@ -673,6 +683,7 @@ impl<'tcx> TypeSuperFoldable<TyCtxt<'tcx>> for ty::Const<'tcx> {
673683 if kind != self . kind ( ) { Ok ( folder. cx ( ) . mk_ct_from_kind ( kind) ) } else { Ok ( self ) }
674684 }
675685
686+ #[ inline]
676687 fn super_fold_with < F : TypeFolder < TyCtxt < ' tcx > > > ( self , folder : & mut F ) -> Self {
677688 let kind = match self . kind ( ) {
678689 ConstKind :: Unevaluated ( uv) => ConstKind :: Unevaluated ( uv. fold_with ( folder) ) ,
@@ -690,6 +701,7 @@ impl<'tcx> TypeSuperFoldable<TyCtxt<'tcx>> for ty::Const<'tcx> {
690701}
691702
692703impl < ' tcx > TypeSuperVisitable < TyCtxt < ' tcx > > for ty:: Const < ' tcx > {
704+ #[ inline]
693705 fn super_visit_with < V : TypeVisitor < TyCtxt < ' tcx > > > ( & self , visitor : & mut V ) -> V :: Result {
694706 match self . kind ( ) {
695707 ConstKind :: Unevaluated ( uv) => uv. visit_with ( visitor) ,
0 commit comments