Function rustc::lint::gather_attrs [] [src]

pub fn gather_attrs(attrs: &[Attribute])
                    -> Vec<Result<(Name, Level, Span), Span>>
🔬 This is a nightly-only experimental API. (rustc_private)

Parse the lint attributes into a vector, with Errs for malformed lint attributes. Writing this as an iterator is an enormous mess.