pub fn is_expr_diagnostic_item(
    cx: &LateContext<'_>,
    expr: &Expr<'_>,
    diag_item: Symbol
) -> bool
Expand description

If the expression is a path, resolves it to a DefId and checks if it matches the given diagnostic item.