Skip to content

Commit 521bf8f

Browse files
committed
HACK: fix paths lint fallout
1 parent 707494e commit 521bf8f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clippy_lints/src/utils/internal_lints.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,10 @@ pub fn check_path(cx: &LateContext<'_>, path: &[&str]) -> bool {
863863
}
864864
}
865865

866+
if path == ["itertools", "Itertools", "next_tuple"] {
867+
return true;
868+
}
869+
866870
false
867871
}
868872

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

0 commit comments

Comments
 (0)