diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2021-01-07 17:58:05 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2021-01-08 00:43:38 +0300 |
| commit | f915e3e5cff7505178bb19286db8abd7b8eb25dc (patch) | |
| tree | 4e063839366ce8f1696fd707d369fcba978d4798 /compiler/rustc_parse/src | |
| parent | c8915eebeaaef9f7cc1cff6ffd97f578b03c2ac9 (diff) | |
| download | rust-f915e3e5cff7505178bb19286db8abd7b8eb25dc.tar.gz rust-f915e3e5cff7505178bb19286db8abd7b8eb25dc.zip | |
rustc_ast_pretty: Remove `PrintState::insert_extra_parens`
It's no longer necessary after #79472
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/lib.rs b/compiler/rustc_parse/src/lib.rs index 4fa9768febb..0da9cd3fe5e 100644 --- a/compiler/rustc_parse/src/lib.rs +++ b/compiler/rustc_parse/src/lib.rs @@ -283,8 +283,7 @@ pub fn nt_to_tokenstream( } else if matches!(synthesize_tokens, CanSynthesizeMissingTokens::Yes) { return fake_token_stream(sess, nt); } else { - let pretty = rustc_ast_pretty::pprust::nonterminal_to_string_no_extra_parens(&nt); - panic!("Missing tokens for nt {:?}", pretty); + panic!("Missing tokens for nt {:?}", pprust::nonterminal_to_string(nt)); } } |
