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.