diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-23 08:13:41 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-23 08:13:41 +1000 |
| commit | 70fa67c0b2551b68b3d54bdebbb6565c95f25ab7 (patch) | |
| tree | 18bd5e549fec38fadbb40eea13288a14795e5cec | |
| parent | 470b0e9c3ca0d08678a9acd38a7308d5291cd1ae (diff) | |
| download | rust-70fa67c0b2551b68b3d54bdebbb6565c95f25ab7.tar.gz rust-70fa67c0b2551b68b3d54bdebbb6565c95f25ab7.zip | |
Tweak some ugly formatting.
| -rw-r--r-- | compiler/rustc_expand/src/mbe/macro_rules.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/mbe/macro_rules.rs b/compiler/rustc_expand/src/mbe/macro_rules.rs index 0050ff10539..0045baf7c56 100644 --- a/compiler/rustc_expand/src/mbe/macro_rules.rs +++ b/compiler/rustc_expand/src/mbe/macro_rules.rs @@ -1146,7 +1146,10 @@ fn check_matcher_core<'tt>( // whereas macros from an external crate have a dummy id. if def.id != DUMMY_NODE_ID && matches!(kind, NonterminalKind::PatParam { inferred: true }) - && matches!(next_token, TokenTree::Token(token) if token.kind == BinOp(token::BinOpToken::Or)) + && matches!( + next_token, + TokenTree::Token(token) if token.kind == BinOp(token::BinOpToken::Or) + ) { // It is suggestion to use pat_param, for example: $x:pat -> $x:pat_param. let suggestion = quoted_tt_to_string(&TokenTree::MetaVarDecl( |
