Function clippy_utils::mir::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.