Skip to content

Commit 70fa67c

Browse files
committed
Tweak some ugly formatting.
1 parent 470b0e9 commit 70fa67c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/rustc_expand/src/mbe/macro_rules.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,10 @@ fn check_matcher_core<'tt>(
11461146
// whereas macros from an external crate have a dummy id.
11471147
if def.id != DUMMY_NODE_ID
11481148
&& matches!(kind, NonterminalKind::PatParam { inferred: true })
1149-
&& matches!(next_token, TokenTree::Token(token) if token.kind == BinOp(token::BinOpToken::Or))
1149+
&& matches!(
1150+
next_token,
1151+
TokenTree::Token(token) if token.kind == BinOp(token::BinOpToken::Or)
1152+
)
11501153
{
11511154
// It is suggestion to use pat_param, for example: $x:pat -> $x:pat_param.
11521155
let suggestion = quoted_tt_to_string(&TokenTree::MetaVarDecl(

0 commit comments

Comments
 (0)