clippy_utils

Function is_diagnostic_item_or_ctor

source
pub fn is_diagnostic_item_or_ctor(
    cx: &LateContext<'_>,
    did: DefId,
    item: Symbol,
) -> bool
Expand description

Checks if the DefId matches the given diagnostic item or it’s constructor.