Function clippy_utils::is_lang_item_or_ctor

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

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