pub fn is_diagnostic_item_or_ctor( cx: &LateContext<'_>, did: DefId, item: Symbol, ) -> bool
Checks if the DefId matches the given diagnostic item or it’s constructor.
DefId