Function suggest_rewrite_if_let

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