@@ -72,7 +72,7 @@ macro_rules! step_identical_methods {
7272}
7373
7474macro_rules! step_impl_unsigned {
75- ( $( $t: ty) * ) => ( $(
75+ ( $( $t: ty) , * ) => ( $(
7676 #[ unstable( feature = "step_trait" ,
7777 reason = "likely to be replaced by finer-grained traits" ,
7878 issue = "42168" ) ]
@@ -145,7 +145,7 @@ macro_rules! step_impl_signed {
145145}
146146
147147macro_rules! step_impl_no_between {
148- ( $( $t: ty) * ) => ( $(
148+ ( $( $t: ty) , * ) => ( $(
149149 #[ unstable( feature = "step_trait" ,
150150 reason = "likely to be replaced by finer-grained traits" ,
151151 issue = "42168" ) ]
@@ -165,7 +165,7 @@ macro_rules! step_impl_no_between {
165165 ) * )
166166}
167167
168- step_impl_unsigned ! ( usize u8 u16 ) ;
168+ step_impl_unsigned ! ( usize , u8 , u16 ) ;
169169#[ cfg( not( target_pointer_witdth = "16" ) ) ]
170170step_impl_unsigned ! ( u32 ) ;
171171#[ cfg( target_pointer_witdth = "16" ) ]
@@ -182,32 +182,32 @@ step_impl_signed!([i64: u64]);
182182// If the target pointer width is not 64-bits, we
183183// assume here that it is less than 64-bits.
184184#[ 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 ) ;
187187
188188macro_rules! range_exact_iter_impl {
189- ( $( $t: ty) * ) => ( $(
189+ ( $( $t: ty) , * ) => ( $(
190190 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
191191 impl ExactSizeIterator for ops:: Range <$t> { }
192192 ) * )
193193}
194194
195195macro_rules! range_incl_exact_iter_impl {
196- ( $( $t: ty) * ) => ( $(
196+ ( $( $t: ty) , * ) => ( $(
197197 #[ stable( feature = "inclusive_range" , since = "1.26.0" ) ]
198198 impl ExactSizeIterator for ops:: RangeInclusive <$t> { }
199199 ) * )
200200}
201201
202202macro_rules! range_trusted_len_impl {
203- ( $( $t: ty) * ) => ( $(
203+ ( $( $t: ty) , * ) => ( $(
204204 #[ unstable( feature = "trusted_len" , issue = "37572" ) ]
205205 unsafe impl TrustedLen for ops:: Range <$t> { }
206206 ) * )
207207}
208208
209209macro_rules! range_incl_trusted_len_impl {
210- ( $( $t: ty) * ) => ( $(
210+ ( $( $t: ty) , * ) => ( $(
211211 #[ unstable( feature = "trusted_len" , issue = "37572" ) ]
212212 unsafe impl TrustedLen for ops:: RangeInclusive <$t> { }
213213 ) * )
@@ -276,15 +276,15 @@ impl<A: Step> Iterator for ops::Range<A> {
276276// Range<{u,i}64> and RangeInclusive<{u,i}{32,64,size}> are excluded
277277// because they cannot guarantee having a length <= usize::MAX, which is
278278// 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 ) ;
281281
282282// These macros generate `TrustedLen` impls.
283283//
284284// They need to guarantee that .size_hint() is either exact, or that
285285// 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 ) ;
288288
289289#[ stable( feature = "rust1" , since = "1.0.0" ) ]
290290impl < A : Step > DoubleEndedIterator for ops:: Range < A > {
0 commit comments