clippy_utils::macros

Function find_assert_eq_args

Source
pub fn find_assert_eq_args<'a>(
    cx: &LateContext<'_>,
    expr: &'a Expr<'a>,
    expn: ExpnId,
) -> Option<(&'a Expr<'a>, &'a Expr<'a>, PanicExpn<'a>)>
Expand description

Finds the arguments of an assert_eq! or debug_assert_eq! macro call within the macro expansion