File tree 1 file changed +3
-9
lines changed
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -102,17 +102,17 @@ macro_rules! tuple_impls {
102
102
}
103
103
104
104
#[ stable( feature = "array_tuple_conv" , since = "1.63.0" ) ]
105
- impl <T > From <[ T ; count! ( $ ( $T ) + ) ] > for ( $( ${ ignore( T ) } T , ) +) {
105
+ impl <T > From <[ T ; $ { count( T ) } ] > for ( $( ${ ignore( T ) } T , ) +) {
106
106
#[ inline]
107
107
#[ allow( non_snake_case) ]
108
- fn from( array: [ T ; count! ( $ ( $T ) + ) ] ) -> Self {
108
+ fn from( array: [ T ; $ { count( T ) } ] ) -> Self {
109
109
let [ $( $T, ) +] = array;
110
110
( $( $T, ) +)
111
111
}
112
112
}
113
113
114
114
#[ stable( feature = "array_tuple_conv" , since = "1.63.0" ) ]
115
- impl <T > From <( $( ${ ignore( T ) } T , ) +) > for [ T ; count! ( $ ( $T ) + ) ] {
115
+ impl <T > From <( $( ${ ignore( T ) } T , ) +) > for [ T ; $ { count( T ) } ] {
116
116
#[ inline]
117
117
#[ allow( non_snake_case) ]
118
118
fn from( tuple: ( $( ${ ignore( T ) } T , ) +) ) -> Self {
@@ -200,12 +200,6 @@ macro_rules! last_type {
200
200
201
201
tuple_impls ! ( E D C B A Z Y X W V U T ) ;
202
202
203
- macro_rules! count {
204
- ( $( $a: ident) * ) => {
205
- 0 $( ${ ignore( a) } + 1 ) *
206
- } ;
207
- }
208
-
209
203
#[ stable( feature = "array_tuple_conv" , since = "1.63.0" ) ]
210
204
impl < T > From < ( ) > for [ T ; 0 ] {
211
205
fn from ( ( ) : ( ) ) -> Self {
You can’t perform that action at this time.
0 commit comments