@@ -122,7 +122,7 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
122
122
( & ExprTup ( ref l_tup) , & ExprTup ( ref r_tup) ) => self . eq_exprs ( l_tup, r_tup) ,
123
123
( & ExprTupField ( ref le, li) , & ExprTupField ( ref re, ri) ) => li. node == ri. node && self . eq_expr ( le, re) ,
124
124
( & ExprUnary ( l_op, ref le) , & ExprUnary ( r_op, ref re) ) => l_op == r_op && self . eq_expr ( le, re) ,
125
- ( & ExprVec ( ref l) , & ExprVec ( ref r) ) => self . eq_exprs ( l, r) ,
125
+ ( & ExprArray ( ref l) , & ExprArray ( ref r) ) => self . eq_exprs ( l, r) ,
126
126
( & ExprWhile ( ref lc, ref lb, ref ll) , & ExprWhile ( ref rc, ref rb, ref rl) ) => {
127
127
self . eq_expr ( lc, rc) && self . eq_block ( lb, rb) && both ( ll, rl, |l, r| l. node . as_str ( ) == r. node . as_str ( ) )
128
128
}
@@ -159,7 +159,7 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
159
159
self . eq_expr ( ls, rs) && self . eq_expr ( le, re)
160
160
}
161
161
( & PatKind :: Ref ( ref le, ref lm) , & PatKind :: Ref ( ref re, ref rm) ) => lm == rm && self . eq_pat ( le, re) ,
162
- ( & PatKind :: Vec ( ref ls, ref li, ref le) , & PatKind :: Vec ( ref rs, ref ri, ref re) ) => {
162
+ ( & PatKind :: Slice ( ref ls, ref li, ref le) , & PatKind :: Slice ( ref rs, ref ri, ref re) ) => {
163
163
over ( ls, rs, |l, r| self . eq_pat ( l, r) ) && over ( le, re, |l, r| self . eq_pat ( l, r) ) &&
164
164
both ( li, ri, |l, r| self . eq_pat ( l, r) )
165
165
}
@@ -183,8 +183,8 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
183
183
184
184
fn eq_ty ( & self , left : & Ty , right : & Ty ) -> bool {
185
185
match ( & left. node , & right. node ) {
186
- ( & TyVec ( ref l_vec) , & TyVec ( ref r_vec) ) => self . eq_ty ( l_vec, r_vec) ,
187
- ( & TyFixedLengthVec ( ref lt, ref ll) , & TyFixedLengthVec ( ref rt, ref rl) ) => {
186
+ ( & TySlice ( ref l_vec) , & TySlice ( ref r_vec) ) => self . eq_ty ( l_vec, r_vec) ,
187
+ ( & TyArray ( ref lt, ref ll) , & TyArray ( ref rt, ref rl) ) => {
188
188
self . eq_ty ( lt, rt) && self . eq_expr ( ll, rl)
189
189
}
190
190
( & TyPtr ( ref l_mut) , & TyPtr ( ref r_mut) ) => l_mut. mutbl == r_mut. mutbl && self . eq_ty ( & * l_mut. ty , & * r_mut. ty ) ,
@@ -457,8 +457,8 @@ impl<'a, 'tcx: 'a> SpanlessHash<'a, 'tcx> {
457
457
lop. hash ( & mut self . s ) ;
458
458
self . hash_expr ( le) ;
459
459
}
460
- ExprVec ( ref v) => {
461
- let c: fn ( _) -> _ = ExprVec ;
460
+ ExprArray ( ref v) => {
461
+ let c: fn ( _) -> _ = ExprArray ;
462
462
c. hash ( & mut self . s ) ;
463
463
464
464
self . hash_exprs ( v) ;
0 commit comments