pub fn match_any_def_paths(
    cx: &LateContext<'_>,
    did: DefId,
    paths: &[&[&str]]
) -> Option<usize>
Expand description

Checks if the given DefId matches any of the paths. Returns the index of matching path, if any.

Please use match_any_diagnostic_items if the targets are all diagnostic items.