Function clippy_utils::match_any_diagnostic_items[−][src]

pub fn match_any_diagnostic_items(
    cx: &LateContext<'_>,
    def_id: DefId,
    diag_items: &[Symbol]
) -> Option<usize>
Expand description

Checks if the given DefId matches any of provided diagnostic items. Returns the index of matching path, if any.