Function clippy_utils::get_parent_expr
source · pub fn get_parent_expr<'tcx>(
cx: &LateContext<'tcx>,
e: &Expr<'_>,
) -> Option<&'tcx Expr<'tcx>>
Expand description
Gets the parent expression, if any –- this is useful to constrain a lint.