File tree 1 file changed +3
-5
lines changed
compiler/rustc_parse/src/parser
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -66,15 +66,14 @@ impl<'a> Parser<'a> {
66
66
token:: Interpolated ( nt) => may_be_ident ( & nt. 0 ) ,
67
67
_ => false ,
68
68
} ,
69
- NonterminalKind :: PatParam { .. } | NonterminalKind :: PatWithOr => {
70
- match & token. kind {
69
+ NonterminalKind :: PatParam { .. } | NonterminalKind :: PatWithOr => match & token. kind {
71
70
token:: Ident ( ..) | // box, ref, mut, and other identifiers (can stricten)
72
71
token:: OpenDelim ( Delimiter :: Parenthesis ) | // tuple pattern
73
72
token:: OpenDelim ( Delimiter :: Bracket ) | // slice pattern
74
73
token:: BinOp ( token:: And ) | // reference
75
74
token:: BinOp ( token:: Minus ) | // negative literal
76
75
token:: AndAnd | // double reference
77
- token:: Literal ( _) | // literal
76
+ token:: Literal ( _) | // literal
78
77
token:: DotDot | // range pattern (future compat)
79
78
token:: DotDotDot | // range pattern (future compat)
80
79
token:: ModSep | // path
@@ -84,8 +83,7 @@ impl<'a> Parser<'a> {
84
83
token:: BinOp ( token:: Or ) => matches ! ( kind, NonterminalKind :: PatWithOr ) ,
85
84
token:: Interpolated ( nt) => may_be_ident ( & nt. 0 ) ,
86
85
_ => false ,
87
- }
88
- }
86
+ } ,
89
87
NonterminalKind :: Lifetime => match & token. kind {
90
88
token:: Lifetime ( _) => true ,
91
89
token:: Interpolated ( nt) => {
You can’t perform that action at this time.
0 commit comments