@@ -478,7 +478,7 @@ impl Pat {
478
478
PatKind :: Box ( ref s) | PatKind :: Ref ( ref s, _) => {
479
479
s. walk_ ( it)
480
480
}
481
- PatKind :: Vec ( ref before, ref slice, ref after) => {
481
+ PatKind :: Slice ( ref before, ref slice, ref after) => {
482
482
before. iter ( ) . all ( |p| p. walk_ ( it) ) &&
483
483
slice. iter ( ) . all ( |p| p. walk_ ( it) ) &&
484
484
after. iter ( ) . all ( |p| p. walk_ ( it) )
@@ -554,8 +554,8 @@ pub enum PatKind {
554
554
/// A range pattern, e.g. `1...2`
555
555
Range ( P < Expr > , P < Expr > ) ,
556
556
/// `[a, b, ..i, y, z]` is represented as:
557
- /// `PatKind::Vec (box [a, b], Some(i), box [y, z])`
558
- Vec ( HirVec < P < Pat > > , Option < P < Pat > > , HirVec < P < Pat > > ) ,
557
+ /// `PatKind::Slice (box [a, b], Some(i), box [y, z])`
558
+ Slice ( HirVec < P < Pat > > , Option < P < Pat > > , HirVec < P < Pat > > ) ,
559
559
}
560
560
561
561
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug , Copy ) ]
@@ -826,7 +826,7 @@ pub enum Expr_ {
826
826
/// A `box x` expression.
827
827
ExprBox ( P < Expr > ) ,
828
828
/// An array (`[a, b, c, d]`)
829
- ExprVec ( HirVec < P < Expr > > ) ,
829
+ ExprArray ( HirVec < P < Expr > > ) ,
830
830
/// A function call
831
831
///
832
832
/// The first field resolves to the function itself (usually an `ExprPath`),
@@ -1080,10 +1080,10 @@ pub struct BareFnTy {
1080
1080
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
1081
1081
/// The different kinds of types recognized by the compiler
1082
1082
pub enum Ty_ {
1083
- /// A variable length array (`[T]`)
1084
- TyVec ( P < Ty > ) ,
1083
+ /// A variable length slice (`[T]`)
1084
+ TySlice ( P < Ty > ) ,
1085
1085
/// A fixed length array (`[T; n]`)
1086
- TyFixedLengthVec ( P < Ty > , P < Expr > ) ,
1086
+ TyArray ( P < Ty > , P < Expr > ) ,
1087
1087
/// A raw pointer (`*const T` or `*mut T`)
1088
1088
TyPtr ( MutTy ) ,
1089
1089
/// A reference (`&'a T` or `&'a mut T`)
0 commit comments