@@ -43,52 +43,44 @@ macro_rules! span_bug {
4343
4444#[ macro_export]
4545macro_rules! CloneLiftImpls {
46- ( for <$tcx : lifetime> { $ ( $ty: ty, ) + } ) => {
46+ ( $ ( $ty: ty, ) +) => {
4747 $(
48- impl <$ tcx> $crate:: ty:: Lift <$ tcx> for $ty {
48+ impl <' tcx> $crate:: ty:: Lift <' tcx> for $ty {
4949 type Lifted = Self ;
50- fn lift_to_tcx( self , _: $crate:: ty:: TyCtxt <$ tcx>) -> Option <Self > {
50+ fn lift_to_tcx( self , _: $crate:: ty:: TyCtxt <' tcx>) -> Option <Self > {
5151 Some ( self )
5252 }
5353 }
5454 ) +
5555 } ;
56-
57- ( $( $ty: ty, ) +) => {
58- CloneLiftImpls ! {
59- for <' tcx> {
60- $( $ty, ) +
61- }
62- }
63- } ;
6456}
6557
6658/// Used for types that are `Copy` and which **do not care arena
6759/// allocated data** (i.e., don't need to be folded).
6860#[ macro_export]
6961macro_rules! TrivialTypeTraversalImpls {
70- ( for <$tcx : lifetime> { $ ( $ty: ty, ) + } ) => {
62+ ( $ ( $ty: ty, ) +) => {
7163 $(
72- impl <$ tcx> $crate:: ty:: fold:: TypeFoldable <$crate:: ty:: TyCtxt <$ tcx>> for $ty {
73- fn try_fold_with<F : $crate:: ty:: fold:: FallibleTypeFolder <$crate:: ty:: TyCtxt <$ tcx>>>(
64+ impl <' tcx> $crate:: ty:: fold:: TypeFoldable <$crate:: ty:: TyCtxt <' tcx>> for $ty {
65+ fn try_fold_with<F : $crate:: ty:: fold:: FallibleTypeFolder <$crate:: ty:: TyCtxt <' tcx>>>(
7466 self ,
7567 _: & mut F ,
7668 ) -> :: std:: result:: Result <Self , F :: Error > {
7769 Ok ( self )
7870 }
7971
8072 #[ inline]
81- fn fold_with<F : $crate:: ty:: fold:: TypeFolder <$crate:: ty:: TyCtxt <$ tcx>>>(
73+ fn fold_with<F : $crate:: ty:: fold:: TypeFolder <$crate:: ty:: TyCtxt <' tcx>>>(
8274 self ,
8375 _: & mut F ,
8476 ) -> Self {
8577 self
8678 }
8779 }
8880
89- impl <$ tcx> $crate:: ty:: visit:: TypeVisitable <$crate:: ty:: TyCtxt <$ tcx>> for $ty {
81+ impl <' tcx> $crate:: ty:: visit:: TypeVisitable <$crate:: ty:: TyCtxt <' tcx>> for $ty {
9082 #[ inline]
91- fn visit_with<F : $crate:: ty:: visit:: TypeVisitor <$crate:: ty:: TyCtxt <$ tcx>>>(
83+ fn visit_with<F : $crate:: ty:: visit:: TypeVisitor <$crate:: ty:: TyCtxt <' tcx>>>(
9284 & self ,
9385 _: & mut F )
9486 -> :: std:: ops:: ControlFlow <F :: BreakTy >
@@ -98,14 +90,6 @@ macro_rules! TrivialTypeTraversalImpls {
9890 }
9991 ) +
10092 } ;
101-
102- ( $( $ty: ty, ) +) => {
103- TrivialTypeTraversalImpls ! {
104- for <' tcx> {
105- $( $ty, ) +
106- }
107- }
108- } ;
10993}
11094
11195#[ macro_export]
0 commit comments