rustc_ast_pretty: Remove PrintState::insert_extra_parens
It's no longer necessary after #79472
This commit is contained in:
parent
c8915eebea
commit
f915e3e5cf
4 changed files with 3 additions and 36 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue