pub(crate) fn extract_ast(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.
This function is used for ast::Attribute, for hir::Attribute use the find_attr! macro with AttributeKind::Lang