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 rustc_attr_ir::Attribute
use find_attr!(attrs, Lang(lang_item)).