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.