Skip to main content

walk_literal_reachable_expr

Function walk_literal_reachable_expr 

Source
fn walk_literal_reachable_expr<'hir, V>(
    visitor: &mut V,
    expr: &'hir Expr<'hir>,
) -> ControlFlow<Infallible>
where V: Visit<'hir, BreakValue = Infallible>,
Expand description

Walks the children of an expression while skipping short-circuit and ternary arms that a literal boolean condition proves unreachable. Unknown conditions keep both possible arms.