Function clippy_utils::is_else_clause

source ·
pub fn is_else_clause(tcx: TyCtxt<'_>, expr: &Expr<'_>) -> bool
Expand description

Checks if the given expression is the else clause of either an if or if let expression.