1
Fork 0

rustc_ast_pretty: Remove PrintState::insert_extra_parens

It's no longer necessary after #79472
This commit is contained in:
Vadim Petrochenkov 2021-01-07 17:58:05 +03:00
parent c8915eebea
commit f915e3e5cf
4 changed files with 3 additions and 36 deletions

View file

@ -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));
}
}