rustc_passes::diagnostic_items

Function extract

Source
fn extract(attrs: &[Attribute]) -> Option<Symbol>
Expand description

Extract the first rustc_diagnostic_item = "$name" out of a list of attributes.