@@ -80,7 +80,7 @@ macro_rules! impl_stable_hash_for {
8080 // We want to use the enum name both in the `impl ... for $enum_name` as well as for
8181 // importing all the variants. Unfortunately it seems we have to take the name
8282 // twice for this purpose
83- ( impl <$( $lt : lifetime $ ( : $lt_bound : lifetime ) ? ) , * $ ( , ) ? $ ( $ T: ident) ,* $( , ) ?>
83+ ( impl <$( $T: ident) ,* $( , ) ?>
8484 for enum $enum_name: path
8585 [ $enum_path: path ]
8686 {
@@ -91,7 +91,7 @@ macro_rules! impl_stable_hash_for {
9191 $( { $( $named_field: ident $( -> $named_delegate: tt) ?) ,* } ) ?
9292 ) ,* $( , ) ?
9393 } ) => {
94- impl <' a , $ ( $lt $ ( : $lt_bound ) ? , ) * $( $T, ) * >
94+ impl <$( $T, ) * >
9595 :: rustc_data_structures:: stable_hasher:: HashStable <$crate:: ich:: StableHashingContext <' a>>
9696 for $enum_name
9797 where $( $T: :: rustc_data_structures:: stable_hasher:: HashStable <$crate:: ich:: StableHashingContext <' a>>) ,*
@@ -117,13 +117,13 @@ macro_rules! impl_stable_hash_for {
117117 // Structs
118118 ( struct $struct_name: path { $( $field: ident $( -> $delegate: tt) ?) ,* $( , ) ? } ) => {
119119 impl_stable_hash_for!(
120- impl <' tcx > for struct $struct_name { $( $field $( -> $delegate) ?) ,* }
120+ impl <> for struct $struct_name { $( $field $( -> $delegate) ?) ,* }
121121 ) ;
122122 } ;
123- ( impl <$( $lt : lifetime $ ( : $lt_bound : lifetime ) ? ) , * $ ( , ) ? $ ( $ T: ident) ,* $( , ) ?> for struct $struct_name: path {
123+ ( impl <$( $T: ident) ,* $( , ) ?> for struct $struct_name: path {
124124 $( $field: ident $( -> $delegate: tt) ?) ,* $( , ) ?
125125 } ) => {
126- impl <' a , $ ( $lt $ ( : $lt_bound ) ? , ) * $( $T, ) * >
126+ impl <$( $T, ) * >
127127 :: rustc_data_structures:: stable_hasher:: HashStable <$crate:: ich:: StableHashingContext <' a>> for $struct_name
128128 where $( $T: :: rustc_data_structures:: stable_hasher:: HashStable <$crate:: ich:: StableHashingContext <' a>>) ,*
129129 {
@@ -143,12 +143,12 @@ macro_rules! impl_stable_hash_for {
143143 // We cannot use normal parentheses here, the parser won't allow it
144144 ( tuple_struct $struct_name: path { $( $field: ident $( -> $delegate: tt) ?) ,* $( , ) ? } ) => {
145145 impl_stable_hash_for!(
146- impl <' tcx > for tuple_struct $struct_name { $( $field $( -> $delegate) ?) ,* }
146+ impl <> for tuple_struct $struct_name { $( $field $( -> $delegate) ?) ,* }
147147 ) ;
148148 } ;
149- ( impl <$( $lt : lifetime $ ( : $lt_bound : lifetime ) ? ) , * $ ( , ) ? $ ( $ T: ident) ,* $( , ) ?>
149+ ( impl <$( $T: ident) ,* $( , ) ?>
150150 for tuple_struct $struct_name: path { $( $field: ident $( -> $delegate: tt) ?) ,* $( , ) ? } ) => {
151- impl <' a , $ ( $lt $ ( : $lt_bound ) ? , ) * $( $T, ) * >
151+ impl <$( $T, ) * >
152152 :: rustc_data_structures:: stable_hasher:: HashStable <$crate:: ich:: StableHashingContext <' a>> for $struct_name
153153 where $( $T: :: rustc_data_structures:: stable_hasher:: HashStable <$crate:: ich:: StableHashingContext <' a>>) ,*
154154 {
@@ -170,7 +170,7 @@ macro_rules! impl_stable_hash_for {
170170macro_rules! impl_stable_hash_for_spanned {
171171 ( $T: path) => (
172172
173- impl < ' a , ' tcx> HashStable <StableHashingContext <' a>> for :: syntax:: source_map:: Spanned <$T>
173+ impl HashStable <StableHashingContext <' a>> for :: syntax:: source_map:: Spanned <$T>
174174 {
175175 #[ inline]
176176 fn hash_stable<W : StableHasherResult >( & self ,
0 commit comments