@@ -82,7 +82,7 @@ fn test_type_check() {
82
82
] ;
83
83
84
84
// 8 and 16 are just smaller 32.
85
- let size = vec ! [ "32" , "64" ] ;
85
+ let size = [ "32" , "64" ] ;
86
86
87
87
let signed = size. iter ( ) . map ( |s| format ! ( "i{}" , s) ) . collect :: < Vec < _ > > ( ) ;
88
88
let unsigned = size. iter ( ) . map ( |s| format ! ( "u{}" , s) ) . collect :: < Vec < _ > > ( ) ;
@@ -120,30 +120,30 @@ fn test_type_check() {
120
120
. flat_map ( |lhs| all_num. iter ( ) . map ( move |rhs| ( lhs, * rhs) ) )
121
121
. collect :: < Vec < _ > > ( ) ;
122
122
for ( lhs, rhs) in pair {
123
- run_ast ( file, & format ! ( "{lhs} > {rhs}" ) , & columns) ;
124
- run_ast ( file, & format ! ( "{lhs} = {rhs}" ) , & columns) ;
123
+ run_ast ( file, format ! ( "{lhs} > {rhs}" ) , & columns) ;
124
+ run_ast ( file, format ! ( "{lhs} = {rhs}" ) , & columns) ;
125
125
}
126
126
127
127
for ty in types {
128
- run_ast ( file, & format ! ( "{ty} > 1" ) , & columns) ;
129
- run_ast ( file, & format ! ( "{ty} = 1" ) , & columns) ;
130
- run_ast ( file, & format ! ( "1 > {ty}" ) , & columns) ;
131
- run_ast ( file, & format ! ( "1 = {ty}" ) , & columns) ;
128
+ run_ast ( file, format ! ( "{ty} > 1" ) , & columns) ;
129
+ run_ast ( file, format ! ( "{ty} = 1" ) , & columns) ;
130
+ run_ast ( file, format ! ( "1 > {ty}" ) , & columns) ;
131
+ run_ast ( file, format ! ( "1 = {ty}" ) , & columns) ;
132
132
133
- run_ast ( file, & format ! ( "{ty} > 1.0" ) , & columns) ;
134
- run_ast ( file, & format ! ( "{ty} = 1.0" ) , & columns) ;
135
- run_ast ( file, & format ! ( "1.0 > {ty}" ) , & columns) ;
136
- run_ast ( file, & format ! ( "1.0 = {ty}" ) , & columns) ;
133
+ run_ast ( file, format ! ( "{ty} > 1.0" ) , & columns) ;
134
+ run_ast ( file, format ! ( "{ty} = 1.0" ) , & columns) ;
135
+ run_ast ( file, format ! ( "1.0 > {ty}" ) , & columns) ;
136
+ run_ast ( file, format ! ( "1.0 = {ty}" ) , & columns) ;
137
137
138
- run_ast ( file, & format ! ( "{ty} > '1'" ) , & columns) ;
139
- run_ast ( file, & format ! ( "{ty} = '1'" ) , & columns) ;
140
- run_ast ( file, & format ! ( "'1' > {ty}" ) , & columns) ;
141
- run_ast ( file, & format ! ( "'1' = {ty}" ) , & columns) ;
138
+ run_ast ( file, format ! ( "{ty} > '1'" ) , & columns) ;
139
+ run_ast ( file, format ! ( "{ty} = '1'" ) , & columns) ;
140
+ run_ast ( file, format ! ( "'1' > {ty}" ) , & columns) ;
141
+ run_ast ( file, format ! ( "'1' = {ty}" ) , & columns) ;
142
142
143
- run_ast ( file, & format ! ( "{ty} > 1::uint64" ) , & columns) ;
144
- run_ast ( file, & format ! ( "{ty} = 1::uint64" ) , & columns) ;
145
- run_ast ( file, & format ! ( "1::uint64 > {ty}" ) , & columns) ;
146
- run_ast ( file, & format ! ( "1::uint64 = {ty}" ) , & columns) ;
143
+ run_ast ( file, format ! ( "{ty} > 1::uint64" ) , & columns) ;
144
+ run_ast ( file, format ! ( "{ty} = 1::uint64" ) , & columns) ;
145
+ run_ast ( file, format ! ( "1::uint64 > {ty}" ) , & columns) ;
146
+ run_ast ( file, format ! ( "1::uint64 = {ty}" ) , & columns) ;
147
147
}
148
148
}
149
149
}
0 commit comments