Skip to content

Commit efed69e

Browse files
committed
Deprecate ArgParser::list
1 parent ec3f438 commit efed69e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

compiler/rustc_attr_parsing/src/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ impl ArgParser {
176176
///
177177
/// - `#[allow(clippy::complexity)]`: `(clippy::complexity)` is a list
178178
/// - `#[rustfmt::skip::macros(target_macro_name)]`: `(target_macro_name)` is a list
179+
#[deprecated = "use `AcceptContext::single_element_list` instead"]
179180
pub fn list(&self) -> Option<&MetaItemListParser> {
180181
match self {
181182
Self::List(l) => Some(l),

0 commit comments

Comments
 (0)