Move validate_attr to rustc_attr_parsing

This commit is contained in:
Jonathan Brouwer
2025-07-29 16:35:22 +02:00
parent 8e3710ef31
commit 21d3189779
21 changed files with 99 additions and 85 deletions

View File

@@ -399,7 +399,7 @@ impl<'a> Parser<'a> {
}
/// Matches `COMMASEP(meta_item_inner)`.
pub(crate) fn parse_meta_seq_top(&mut self) -> PResult<'a, ThinVec<ast::MetaItemInner>> {
pub fn parse_meta_seq_top(&mut self) -> PResult<'a, ThinVec<ast::MetaItemInner>> {
// Presumably, the majority of the time there will only be one attr.
let mut nmis = ThinVec::with_capacity(1);
while self.token != token::Eof {