@@ -72,7 +72,7 @@ macro_rules! step_identical_methods {
72
72
}
73
73
74
74
macro_rules! step_impl_unsigned {
75
- ( $( $t: ty) * ) => ( $(
75
+ ( $( $t: ty) , * ) => ( $(
76
76
#[ unstable( feature = "step_trait" ,
77
77
reason = "likely to be replaced by finer-grained traits" ,
78
78
issue = "42168" ) ]
@@ -145,7 +145,7 @@ macro_rules! step_impl_signed {
145
145
}
146
146
147
147
macro_rules! step_impl_no_between {
148
- ( $( $t: ty) * ) => ( $(
148
+ ( $( $t: ty) , * ) => ( $(
149
149
#[ unstable( feature = "step_trait" ,
150
150
reason = "likely to be replaced by finer-grained traits" ,
151
151
issue = "42168" ) ]
@@ -165,7 +165,7 @@ macro_rules! step_impl_no_between {
165
165
) * )
166
166
}
167
167
168
- step_impl_unsigned ! ( usize u8 u16 ) ;
168
+ step_impl_unsigned ! ( usize , u8 , u16 ) ;
169
169
#[ cfg( not( target_pointer_witdth = "16" ) ) ]
170
170
step_impl_unsigned ! ( u32 ) ;
171
171
#[ cfg( target_pointer_witdth = "16" ) ]
@@ -182,32 +182,32 @@ step_impl_signed!([i64: u64]);
182
182
// If the target pointer width is not 64-bits, we
183
183
// assume here that it is less than 64-bits.
184
184
#[ cfg( not( target_pointer_width = "64" ) ) ]
185
- step_impl_no_between ! ( u64 i64 ) ;
186
- step_impl_no_between ! ( u128 i128 ) ;
185
+ step_impl_no_between ! ( u64 , i64 ) ;
186
+ step_impl_no_between ! ( u128 , i128 ) ;
187
187
188
188
macro_rules! range_exact_iter_impl {
189
- ( $( $t: ty) * ) => ( $(
189
+ ( $( $t: ty) , * ) => ( $(
190
190
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
191
191
impl ExactSizeIterator for ops:: Range <$t> { }
192
192
) * )
193
193
}
194
194
195
195
macro_rules! range_incl_exact_iter_impl {
196
- ( $( $t: ty) * ) => ( $(
196
+ ( $( $t: ty) , * ) => ( $(
197
197
#[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
198
198
impl ExactSizeIterator for ops:: RangeInclusive <$t> { }
199
199
) * )
200
200
}
201
201
202
202
macro_rules! range_trusted_len_impl {
203
- ( $( $t: ty) * ) => ( $(
203
+ ( $( $t: ty) , * ) => ( $(
204
204
#[ unstable( feature = "trusted_len" , issue = "37572" ) ]
205
205
unsafe impl TrustedLen for ops:: Range <$t> { }
206
206
) * )
207
207
}
208
208
209
209
macro_rules! range_incl_trusted_len_impl {
210
- ( $( $t: ty) * ) => ( $(
210
+ ( $( $t: ty) , * ) => ( $(
211
211
#[ unstable( feature = "trusted_len" , issue = "37572" ) ]
212
212
unsafe impl TrustedLen for ops:: RangeInclusive <$t> { }
213
213
) * )
@@ -276,15 +276,15 @@ impl<A: Step> Iterator for ops::Range<A> {
276
276
// Range<{u,i}64> and RangeInclusive<{u,i}{32,64,size}> are excluded
277
277
// because they cannot guarantee having a length <= usize::MAX, which is
278
278
// required by ExactSizeIterator.
279
- range_exact_iter_impl ! ( usize u8 u16 u32 isize i8 i16 i32 ) ;
280
- range_incl_exact_iter_impl ! ( u8 u16 i8 i16 ) ;
279
+ range_exact_iter_impl ! ( usize , u8 , u16 , u32 , isize , i8 , i16 , i32 ) ;
280
+ range_incl_exact_iter_impl ! ( u8 , u16 , i8 , i16 ) ;
281
281
282
282
// These macros generate `TrustedLen` impls.
283
283
//
284
284
// They need to guarantee that .size_hint() is either exact, or that
285
285
// the upper bound is None when it does not fit the type limits.
286
- range_trusted_len_impl ! ( usize isize u8 i8 u16 i16 u32 i32 i64 u64 ) ;
287
- range_incl_trusted_len_impl ! ( usize isize u8 i8 u16 i16 u32 i32 i64 u64 ) ;
286
+ range_trusted_len_impl ! ( usize , isize , u8 , i8 , u16 , i16 , u32 , i32 , i64 , u64 ) ;
287
+ range_incl_trusted_len_impl ! ( usize , isize , u8 , i8 , u16 , i16 , u32 , i32 , i64 , u64 ) ;
288
288
289
289
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
290
290
impl < A : Step > DoubleEndedIterator for ops:: Range < A > {
0 commit comments