about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-05-20 11:57:50 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-05-20 11:58:11 +1000
commitee1c2d583a081e24684e09fbbcc78fe4d5220066 (patch)
tree6518a31fbef33242761ed0c089cffa02e77332c5
parent59372f2c81ba74554d9a71b12a4ed7f29adb33a2 (diff)
downloadrust-ee1c2d583a081e24684e09fbbcc78fe4d5220066.tar.gz
rust-ee1c2d583a081e24684e09fbbcc78fe4d5220066.zip
Remove `MetaItemListParser::all_{word,path}_list`, which are unused.
-rw-r--r--compiler/rustc_attr_parsing/src/parser.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/compiler/rustc_attr_parsing/src/parser.rs b/compiler/rustc_attr_parsing/src/parser.rs
index 077d953cfa3..a5c3cec3bdd 100644
--- a/compiler/rustc_attr_parsing/src/parser.rs
+++ b/compiler/rustc_attr_parsing/src/parser.rs
@@ -561,20 +561,6 @@ impl<'a> MetaItemListParser<'a> {
         self.len() == 0
     }
 
-    /// Asserts that every item in the list is another list starting with a word.
-    ///
-    /// See [`MetaItemParser::word`] for examples of words.
-    pub fn all_word_list<'s>(&'s self) -> Option<Vec<(Ident, &'s ArgParser<'a>)>> {
-        self.mixed().map(|i| i.meta_item()?.word()).collect()
-    }
-
-    /// Asserts that every item in the list is another list starting with a full path.
-    ///
-    /// See [`MetaItemParser::path`] for examples of paths.
-    pub fn all_path_list<'s>(&'s self) -> Option<Vec<(PathParser<'a>, &'s ArgParser<'a>)>> {
-        self.mixed().map(|i| Some(i.meta_item()?.path())).collect()
-    }
-
     /// Returns Some if the list contains only a single element.
     ///
     /// Inside the Some is the parser to parse this single element.