pub fn path_to_local(expr: &Expr<'_>) -> Option<HirId>
If the expression is a path to a local, returns the canonical HirId of the local.
HirId