Function clippy_utils::expr_use_ctxt
source · pub fn expr_use_ctxt<'tcx>(
cx: &LateContext<'tcx>,
e: &'tcx Expr<'tcx>
) -> Option<ExprUseCtxt<'tcx>>
Expand description
Gets the context an expression’s value is used in.
pub fn expr_use_ctxt<'tcx>(
cx: &LateContext<'tcx>,
e: &'tcx Expr<'tcx>
) -> Option<ExprUseCtxt<'tcx>>
Gets the context an expression’s value is used in.