rustc_hir::lang_items

Function extract

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

Extracts the first lang = "$name" out of a list of attributes. The #[panic_handler] attribute is also extracted out when found.