Allow internal lint INVALID_PATHS for itertools path

Since clippy_utils doesn't depend on the itertools crate anymore, the
lint can't find the path.
This commit is contained in:
flip1995
2021-09-28 10:53:11 +01:00
parent 707494eca9
commit ec38746b4a
3 changed files with 3 additions and 2 deletions

View File

@@ -892,7 +892,7 @@ impl<'tcx> LateLintPass<'tcx> for InvalidPaths {
}).collect();
if !check_path(cx, &path[..]);
then {
span_lint(cx, CLIPPY_LINTS_INTERNAL, item.span, "invalid path");
span_lint(cx, INVALID_PATHS, item.span, "invalid path");
}
}
}