clippy_utils

Function local_is_initialized

source
pub fn local_is_initialized(cx: &LateContext<'_>, local: HirId) -> bool
Expand description

Checks if the given local has an initializer or is from something other than a let statement

e.g. returns true for x in fn f(x: usize) { .. } and let x = 1; but false for let x;