clippy_utils

Function path_to_local

source
pub fn path_to_local(expr: &Expr<'_>) -> Option<HirId>
Expand description

If the expression is a path to a local, returns the canonical HirId of the local.