Skip to content

Commit ee1c2d5

Browse files
committed
Remove MetaItemListParser::all_{word,path}_list, which are unused.
1 parent 59372f2 commit ee1c2d5

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

compiler/rustc_attr_parsing/src/parser.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -561,20 +561,6 @@ impl<'a> MetaItemListParser<'a> {
561561
self.len() == 0
562562
}
563563

564-
/// Asserts that every item in the list is another list starting with a word.
565-
///
566-
/// See [`MetaItemParser::word`] for examples of words.
567-
pub fn all_word_list<'s>(&'s self) -> Option<Vec<(Ident, &'s ArgParser<'a>)>> {
568-
self.mixed().map(|i| i.meta_item()?.word()).collect()
569-
}
570-
571-
/// Asserts that every item in the list is another list starting with a full path.
572-
///
573-
/// See [`MetaItemParser::path`] for examples of paths.
574-
pub fn all_path_list<'s>(&'s self) -> Option<Vec<(PathParser<'a>, &'s ArgParser<'a>)>> {
575-
self.mixed().map(|i| Some(i.meta_item()?.path())).collect()
576-
}
577-
578564
/// Returns Some if the list contains only a single element.
579565
///
580566
/// Inside the Some is the parser to parse this single element.

0 commit comments

Comments
 (0)