clippy_utils::visitors

Function is_local_used

source
pub fn is_local_used<'tcx>(
    cx: &LateContext<'tcx>,
    visitable: impl Visitable<'tcx>,
    id: HirId,
) -> bool
Expand description

Checks if the given local is used.