We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 470b0e9 commit 70fa67cCopy full SHA for 70fa67c
compiler/rustc_expand/src/mbe/macro_rules.rs
@@ -1146,7 +1146,10 @@ fn check_matcher_core<'tt>(
1146
// whereas macros from an external crate have a dummy id.
1147
if def.id != DUMMY_NODE_ID
1148
&& matches!(kind, NonterminalKind::PatParam { inferred: true })
1149
- && matches!(next_token, TokenTree::Token(token) if token.kind == BinOp(token::BinOpToken::Or))
+ && matches!(
1150
+ next_token,
1151
+ TokenTree::Token(token) if token.kind == BinOp(token::BinOpToken::Or)
1152
+ )
1153
{
1154
// It is suggestion to use pat_param, for example: $x:pat -> $x:pat_param.
1155
let suggestion = quoted_tt_to_string(&TokenTree::MetaVarDecl(
0 commit comments