Function clippy_utils::macros::matching_root_macro_call
source ยท pub fn matching_root_macro_call(
cx: &LateContext<'_>,
span: Span,
name: Symbol,
) -> Option<MacroCall>
Expand description
A combination of root_macro_call
and
is_diagnostic_item
that returns a MacroCall
at the root expansion if only it matches the given name.