@@ -125,7 +125,7 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
125
125
( & ExprTup ( ref l_tup) , & ExprTup ( ref r_tup) ) => self . eq_exprs ( l_tup, r_tup) ,
126
126
( & ExprTupField ( ref le, li) , & ExprTupField ( ref re, ri) ) => li. node == ri. node && self . eq_expr ( le, re) ,
127
127
( & ExprUnary ( l_op, ref le) , & ExprUnary ( r_op, ref re) ) => l_op == r_op && self . eq_expr ( le, re) ,
128
- ( & ExprVec ( ref l) , & ExprVec ( ref r) ) => self . eq_exprs ( l, r) ,
128
+ ( & ExprArray ( ref l) , & ExprArray ( ref r) ) => self . eq_exprs ( l, r) ,
129
129
( & ExprWhile ( ref lc, ref lb, ref ll) , & ExprWhile ( ref rc, ref rb, ref rl) ) => {
130
130
self . eq_expr ( lc, rc) && self . eq_block ( lb, rb) && both ( ll, rl, |l, r| l. node . as_str ( ) == r. node . as_str ( ) )
131
131
}
@@ -166,7 +166,7 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
166
166
self . eq_expr ( ls, rs) && self . eq_expr ( le, re)
167
167
}
168
168
( & PatKind :: Ref ( ref le, ref lm) , & PatKind :: Ref ( ref re, ref rm) ) => lm == rm && self . eq_pat ( le, re) ,
169
- ( & PatKind :: Vec ( ref ls, ref li, ref le) , & PatKind :: Vec ( ref rs, ref ri, ref re) ) => {
169
+ ( & PatKind :: Slice ( ref ls, ref li, ref le) , & PatKind :: Slice ( ref rs, ref ri, ref re) ) => {
170
170
over ( ls, rs, |l, r| self . eq_pat ( l, r) ) && over ( le, re, |l, r| self . eq_pat ( l, r) ) &&
171
171
both ( li, ri, |l, r| self . eq_pat ( l, r) )
172
172
}
@@ -211,8 +211,8 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
211
211
212
212
fn eq_ty ( & self , left : & Ty , right : & Ty ) -> bool {
213
213
match ( & left. node , & right. node ) {
214
- ( & TyVec ( ref l_vec) , & TyVec ( ref r_vec) ) => self . eq_ty ( l_vec, r_vec) ,
215
- ( & TyFixedLengthVec ( ref lt, ref ll) , & TyFixedLengthVec ( ref rt, ref rl) ) => {
214
+ ( & TySlice ( ref l_vec) , & TySlice ( ref r_vec) ) => self . eq_ty ( l_vec, r_vec) ,
215
+ ( & TyArray ( ref lt, ref ll) , & TyArray ( ref rt, ref rl) ) => {
216
216
self . eq_ty ( lt, rt) && self . eq_expr ( ll, rl)
217
217
}
218
218
( & TyPtr ( ref l_mut) , & TyPtr ( ref r_mut) ) => l_mut. mutbl == r_mut. mutbl && self . eq_ty ( & * l_mut. ty , & * r_mut. ty ) ,
@@ -490,8 +490,8 @@ impl<'a, 'tcx: 'a> SpanlessHash<'a, 'tcx> {
490
490
lop. hash ( & mut self . s ) ;
491
491
self . hash_expr ( le) ;
492
492
}
493
- ExprVec ( ref v) => {
494
- let c: fn ( _) -> _ = ExprVec ;
493
+ ExprArray ( ref v) => {
494
+ let c: fn ( _) -> _ = ExprArray ;
495
495
c. hash ( & mut self . s ) ;
496
496
497
497
self . hash_exprs ( v) ;
0 commit comments