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