clippy_utils

Function 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.