clippy_utils

Function is_never_expr

source
pub fn is_never_expr<'tcx>(
    cx: &LateContext<'tcx>,
    e: &'tcx Expr<'_>,
) -> Option<RequiresSemi>
Expand description

Check if the expression return !, a type coerced from !, or could return ! if the final expression were turned into a statement.