Function clippy_utils::match_any_def_paths
source · [−]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.