@@ -66,18 +66,18 @@ impl<'a> Parser<'a> {
6666 } ,
6767 NonterminalKind :: PatParam { .. } | NonterminalKind :: PatWithOr { .. } => {
6868 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)
8181 // leading vert `|` or-pattern
8282 token:: BinOp ( token:: Or ) => matches ! ( kind, NonterminalKind :: PatWithOr { ..} ) ,
8383 token:: Interpolated ( ref nt) => may_be_ident ( nt) ,
0 commit comments