diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-01-09 12:00:45 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-02-02 09:09:52 -0500 |
| commit | d5b760ba62b40dd770c09e704b8a3af64c1fd058 (patch) | |
| tree | e15b2809a9c9447c7cee05932f04cd4e9fd10792 /compiler/rustc_parse/src | |
| parent | f6cb45ad01a4518f615926f39801996622f46179 (diff) | |
| download | rust-d5b760ba62b40dd770c09e704b8a3af64c1fd058.tar.gz rust-d5b760ba62b40dd770c09e704b8a3af64c1fd058.zip | |
Bump rustfmt version
Also switches on formatting of the mir build module
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/nonterminal.rs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/compiler/rustc_parse/src/parser/nonterminal.rs b/compiler/rustc_parse/src/parser/nonterminal.rs index 012b76d3d18..6e25209f090 100644 --- a/compiler/rustc_parse/src/parser/nonterminal.rs +++ b/compiler/rustc_parse/src/parser/nonterminal.rs @@ -41,13 +41,16 @@ impl<'a> Parser<'a> { }, NonterminalKind::Block => match token.kind { token::OpenDelim(token::Brace) => true, - token::Interpolated(ref nt) => !matches!(**nt, token::NtItem(_) - | token::NtPat(_) - | token::NtTy(_) - | token::NtIdent(..) - | token::NtMeta(_) - | token::NtPath(_) - | token::NtVis(_)), + token::Interpolated(ref nt) => !matches!( + **nt, + token::NtItem(_) + | token::NtPat(_) + | token::NtTy(_) + | token::NtIdent(..) + | token::NtMeta(_) + | token::NtPath(_) + | token::NtVis(_) + ), _ => false, }, NonterminalKind::Path | NonterminalKind::Meta => match token.kind { |
