pub fn is_path_diagnostic_item<'tcx>(
    cx: &LateContext<'_>,
    maybe_path: &impl MaybePath<'tcx>,
    diag_item: Symbol
) -> bool
Expand description

If maybe_path is a path node which resolves to an item, resolves it to a DefId and checks if it matches the given diagnostic item.