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.
pub fn get_parent_expr<'tcx>(
cx: &LateContext<'tcx>,
e: &Expr<'_>,
) -> Option<&'tcx Expr<'tcx>>
Gets the parent expression, if any –- this is useful to constrain a lint.