1
Fork 0

Add warn(unreachable_pub) to rustc_expand.

Plus a tiny bit of reformatting.
This commit is contained in:
Nicholas Nethercote 2024-08-27 12:40:38 +10:00
parent 5fd503ab44
commit df5fbf05a1
7 changed files with 22 additions and 21 deletions

View file

@ -407,7 +407,7 @@ fn token_name_eq(t1: &Token, t2: &Token) -> bool {
// Note: the vectors could be created and dropped within `parse_tt`, but to avoid excess
// allocations we have a single vector for each kind that is cleared and reused repeatedly.
pub struct TtParser {
pub(crate) struct TtParser {
macro_name: Ident,
/// The set of current mps to be processed. This should be empty by the end of a successful