rustc_borrowck::diagnostics::explain_borrow

Function suggest_rewrite_if_let

Source
fn suggest_rewrite_if_let(
    tcx: TyCtxt<'_>,
    expr: &Expr<'_>,
    pat: &str,
    init: &Expr<'_>,
    conseq: &Expr<'_>,
    alt: Option<&Expr<'_>>,
    err: &mut Diag<'_>,
)