fn for_each_consumable(
    hir: Map<'_>,
    place: TrackedValue,
    f: impl FnMut(TrackedValue)
)
Expand description

Applies f to consumable node in the HIR subtree pointed to by place.

This includes the place itself, and if the place is a reference to a local variable then f is also called on the HIR node for that variable as well.

For example, if place points to foo(), then f is called once for the result of foo. On the other hand, if place points to x then f will be called both on the ExprKind::Path node that represents the expression as well as the HirId of the local x itself.