@@ -155,29 +155,36 @@ macro_rules! impl_hash_tuple(
155
155
}
156
156
) ;
157
157
158
- ( $A: ident $( $B: ident) * ) => (
159
- impl <
160
- S : Writer ,
161
- $A: Hash <S > $( , $B: Hash <S >) *
162
- > Hash <S > for ( $A, $( $B) ,* ) {
158
+ ( $( $name: ident) +) => (
159
+ impl <S : Writer , $( $name: Hash <S >) ,* > Hash <S > for ( $( $name, ) * ) {
160
+ #[ allow( uppercase_variables) ]
163
161
#[ inline]
164
162
fn hash( & self , state: & mut S ) {
165
163
match * self {
166
- ( ref $A, $( ref $B) ,* ) => {
167
- $A. hash( state) ;
164
+ ( $( ref $name, ) * ) => {
168
165
$(
169
- $B . hash( state) ;
166
+ $name . hash( state) ;
170
167
) *
171
168
}
172
169
}
173
170
}
174
171
}
175
-
176
- impl_hash_tuple!( $( $B) * )
177
172
) ;
178
173
)
179
174
180
- impl_hash_tuple ! ( a0 a1 a2 a3 a4 a5 a6 a7)
175
+ impl_hash_tuple ! ( )
176
+ impl_hash_tuple ! ( A )
177
+ impl_hash_tuple ! ( A B )
178
+ impl_hash_tuple ! ( A B C )
179
+ impl_hash_tuple ! ( A B C D )
180
+ impl_hash_tuple ! ( A B C D E )
181
+ impl_hash_tuple ! ( A B C D E F )
182
+ impl_hash_tuple ! ( A B C D E F G )
183
+ impl_hash_tuple ! ( A B C D E F G H )
184
+ impl_hash_tuple ! ( A B C D E F G H I )
185
+ impl_hash_tuple ! ( A B C D E F G H I J )
186
+ impl_hash_tuple ! ( A B C D E F G H I J K )
187
+ impl_hash_tuple ! ( A B C D E F G H I J K L )
181
188
182
189
impl < ' a , S : Writer , T : Hash < S > > Hash < S > for & ' a [ T ] {
183
190
#[ inline]
0 commit comments