clippy_utils::attrs

Function is_proc_macro

source
pub fn is_proc_macro(attrs: &[Attribute]) -> bool
Expand description

Returns true if the attributes contain any of proc_macro, proc_macro_derive or proc_macro_attribute, false otherwise