rustc_ast_pretty: Remove PrintState::insert_extra_parens
It's no longer necessary after #79472
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user