Function rustc_hir::lang_items::extract

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

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