From 2bfb65db93e48d8f9e8ecac0b2ea837c081a4db5 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 9 Apr 2020 18:40:43 +0200 Subject: Be consistent about token accesors --- xtask/src/ast_src.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xtask') diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index eba66ff4d..74a87e900 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -408,7 +408,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { struct TupleType { LParen, fields: [TypeRef], RParen } struct NeverType { Excl } struct PathType { Path } - struct PointerType { Star, ConstKw, TypeRef } + struct PointerType { Star, ConstKw, MutKw, TypeRef } struct ArrayType { LBrack, TypeRef, Semi, Expr, RBrack } struct SliceType { LBrack, TypeRef, RBrack } struct ReferenceType { Amp, Lifetime, MutKw, TypeRef } @@ -485,7 +485,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { struct ParenPat { LParen, Pat, RParen } struct RefPat { Amp, MutKw, Pat } struct BoxPat { BoxKw, Pat } - struct BindPat: AttrsOwner, NameOwner { RefKw, MutKw, Pat } + struct BindPat: AttrsOwner, NameOwner { RefKw, MutKw, At, Pat } struct PlaceholderPat { Underscore } struct DotDotPat { Dotdot } struct PathPat { Path } @@ -545,6 +545,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { Pat, Eq, initializer: Expr, + Semi, } struct Condition { LetKw, Pat, Eq, Expr } struct Block: AttrsOwner, ModuleItemOwner { -- cgit v1.2.3