Function clippy_utils::is_expr_diagnostic_item [−][src]
pub fn is_expr_diagnostic_item(
cx: &LateContext<'_>,
expr: &Expr<'_>,
diag_item: Symbol
) -> boolExpand description
If the expression is a path, resolves it to a DefId and checks if it matches the given
diagnostic item.
