@@ -260,7 +260,9 @@ macro_rules! rev_for_each_ident{
260
260
}
261
261
262
262
macro_rules! impl_tuple_collect {
263
- ( $( $Y: ident) ,* ) => (
263
+ ( $dummy: ident, ) => { } ; // stop
264
+ ( $dummy: ident, $( $Y: ident, ) * ) => (
265
+ impl_tuple_collect!( $( $Y, ) * ) ;
264
266
impl <A > TupleCollect for ( $( ignore_ident!( $Y, A ) , ) * ) {
265
267
type Item = A ;
266
268
type Buffer = [ Option <A >; count_ident!( $( $Y, ) * ) - 1 ] ;
@@ -322,16 +324,4 @@ macro_rules! impl_tuple_collect {
322
324
}
323
325
)
324
326
}
325
-
326
- impl_tuple_collect ! ( a) ;
327
- impl_tuple_collect ! ( a, b) ;
328
- impl_tuple_collect ! ( a, b, c) ;
329
- impl_tuple_collect ! ( a, b, c, d) ;
330
- impl_tuple_collect ! ( a, b, c, d, e) ;
331
- impl_tuple_collect ! ( a, b, c, d, e, f) ;
332
- impl_tuple_collect ! ( a, b, c, d, e, f, g) ;
333
- impl_tuple_collect ! ( a, b, c, d, e, f, g, h) ;
334
- impl_tuple_collect ! ( a, b, c, d, e, f, g, h, i) ;
335
- impl_tuple_collect ! ( a, b, c, d, e, f, g, h, i, j) ;
336
- impl_tuple_collect ! ( a, b, c, d, e, f, g, h, i, j, k) ;
337
- impl_tuple_collect ! ( a, b, c, d, e, f, g, h, i, j, k, l) ;
327
+ impl_tuple_collect ! ( dummy, a, b, c, d, e, f, g, h, i, j, k, l, ) ;
0 commit comments