clippy_utils::mir

Function expr_local

Source
pub fn expr_local(tcx: TyCtxt<'_>, expr: &Expr<'_>) -> Option<Local>
Expand description

Tries to determine the Local corresponding to expr, if any. This function is expensive and should be used sparingly.