@@ -66,18 +66,18 @@ impl<'a> Parser<'a> {
66
66
} ,
67
67
NonterminalKind :: PatParam { .. } | NonterminalKind :: PatWithOr { .. } => {
68
68
match token. kind {
69
- token:: Ident ( ..) | // box, ref, mut, and other identifiers (can stricten)
70
- token:: OpenDelim ( Delimiter :: Parenthesis ) | // tuple pattern
71
- token:: OpenDelim ( Delimiter :: Bracket ) | // slice pattern
72
- token:: BinOp ( token:: And ) | // reference
73
- token:: BinOp ( token:: Minus ) | // negative literal
74
- token:: AndAnd | // double reference
75
- token:: Literal ( ..) | // literal
76
- token:: DotDot | // range pattern (future compat)
77
- token:: DotDotDot | // range pattern (future compat)
78
- token:: ModSep | // path
79
- token:: Lt | // path (UFCS constant)
80
- token:: BinOp ( token:: Shl ) => true , // path (double UFCS)
69
+ token:: Ident ( ..) | // box, ref, mut, and other identifiers (can stricten)
70
+ token:: OpenDelim ( Delimiter :: Parenthesis ) | // tuple pattern
71
+ token:: OpenDelim ( Delimiter :: Bracket ) | // slice pattern
72
+ token:: BinOp ( token:: And ) | // reference
73
+ token:: BinOp ( token:: Minus ) | // negative literal
74
+ token:: AndAnd | // double reference
75
+ token:: Literal ( ..) | // literal
76
+ token:: DotDot | // range pattern (future compat)
77
+ token:: DotDotDot | // range pattern (future compat)
78
+ token:: ModSep | // path
79
+ token:: Lt | // path (UFCS constant)
80
+ token:: BinOp ( token:: Shl ) => true , // path (double UFCS)
81
81
// leading vert `|` or-pattern
82
82
token:: BinOp ( token:: Or ) => matches ! ( kind, NonterminalKind :: PatWithOr { ..} ) ,
83
83
token:: Interpolated ( ref nt) => may_be_ident ( nt) ,
0 commit comments