clippy_utils::macros

Function first_node_macro_backtrace

Source
pub fn first_node_macro_backtrace(
    cx: &LateContext<'_>,
    node: &impl HirNode,
) -> impl Iterator<Item = MacroCall>
Expand description

Like macro_backtrace, but only returns macro calls where node is the “first node” of the macro call, as in first_node_in_macro.