Function clippy_utils::match_any_def_paths
source ยท 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 tcx.get_diagnostic_name
if the targets are all diagnostic items.