Function clippy_utils::macros::find_format_arg_expr

source ·
pub fn find_format_arg_expr<'hir, 'ast>(
    start: &'hir Expr<'hir>,
    target: &'ast FormatArgument
) -> Result<&'hir Expr<'hir>, &'ast Expr>
Expand description

Attempt to find the rustc_hir::Expr that corresponds to the FormatArgument’s value, if it cannot be found it will return the rustc_ast::Expr.