clippy_utils::macros

Function find_assert_args

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

Finds the arguments of an assert! or debug_assert! macro call within the macro expansion