diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2021-01-08 11:11:45 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-08 11:11:45 +0900 |
| commit | f6c58afe151ff810b06499cce5b417e3d41d83de (patch) | |
| tree | a2da9bd4dfff1b7ec9a75bf0bf5dd36dbaba3eb5 /compiler/rustc_parse/src | |
| parent | c851ae9d268ad2f90b44edac95b365095c6e426f (diff) | |
| parent | f915e3e5cff7505178bb19286db8abd7b8eb25dc (diff) | |
| download | rust-f6c58afe151ff810b06499cce5b417e3d41d83de.tar.gz rust-f6c58afe151ff810b06499cce5b417e3d41d83de.zip | |
Rollup merge of #80785 - petrochenkov:prettyparen, r=Aaron1011
rustc_ast_pretty: Remove `PrintState::insert_extra_parens` It's no longer necessary after #79472. r? `@Aaron1011`
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)); } } |
