Skip to content

Commit 9a72ded

Browse files
Rollup merge of #101859 - Rageking8:slight-vertical-formatting, r=compiler-errors
Slight vertical formatting
2 parents 72d9e08 + 6d7beaf commit 9a72ded

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

compiler/rustc_parse/src/parser/nonterminal.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)