Function clippy_utils::is_from_proc_macro
source · pub fn is_from_proc_macro<T: WithSearchPat>(cx: &T::Context, item: &T) -> bool
Expand description
Checks if the item likely came from a proc-macro.
This should be called after in_external_macro
and the initial pattern matching of the ast as
it is significantly slower than both of those.