@@ -64,7 +64,7 @@ impl<'a> Parser<'a> {
64
64
} ,
65
65
_ => false ,
66
66
} ,
67
- NonterminalKind :: PatParam { .. } | NonterminalKind :: PatWithOr { .. } => {
67
+ NonterminalKind :: PatParam { .. } | NonterminalKind :: PatWithOr => {
68
68
match & token. kind {
69
69
token:: Ident ( ..) | // box, ref, mut, and other identifiers (can stricten)
70
70
token:: OpenDelim ( Delimiter :: Parenthesis ) | // tuple pattern
@@ -79,7 +79,7 @@ impl<'a> Parser<'a> {
79
79
token:: Lt | // path (UFCS constant)
80
80
token:: BinOp ( token:: Shl ) => true , // path (double UFCS)
81
81
// leading vert `|` or-pattern
82
- token:: BinOp ( token:: Or ) => matches ! ( kind, NonterminalKind :: PatWithOr { .. } ) ,
82
+ token:: BinOp ( token:: Or ) => matches ! ( kind, NonterminalKind :: PatWithOr ) ,
83
83
token:: Interpolated ( nt) => may_be_ident ( nt) ,
84
84
_ => false ,
85
85
}
@@ -127,10 +127,10 @@ impl<'a> Parser<'a> {
127
127
. into_diagnostic ( & self . sess . span_diagnostic ) ) ;
128
128
}
129
129
} ,
130
- NonterminalKind :: PatParam { .. } | NonterminalKind :: PatWithOr { .. } => {
130
+ NonterminalKind :: PatParam { .. } | NonterminalKind :: PatWithOr => {
131
131
token:: NtPat ( self . collect_tokens_no_attrs ( |this| match kind {
132
132
NonterminalKind :: PatParam { .. } => this. parse_pat_no_top_alt ( None , None ) ,
133
- NonterminalKind :: PatWithOr { .. } => this. parse_pat_allow_top_alt (
133
+ NonterminalKind :: PatWithOr => this. parse_pat_allow_top_alt (
134
134
None ,
135
135
RecoverComma :: No ,
136
136
RecoverColon :: No ,
0 commit comments