Automatically published version of the package `syntax` in the rust-lang/rust repository from commit e931f00f658b59481925deb0152503038ca69b9e The publishing script for this crate lives at: https://github.com/alexcrichton/rustc-auto-publish
//! Definitions shared by macros / syntax extensions and e.g. librustc.
usecrate::ast::Attribute;usesyntax_pos::symbol::sym;pubmodallocator;pubfnis_proc_macro_attr(attr:&Attribute)->bool{[sym::proc_macro,sym::proc_macro_attribute,sym::proc_macro_derive].iter().any(|kind|attr.check_name(*kind))}