Function rustc_passes::diagnostic_items::extract

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

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