Open ErichDonGubler opened 3 months ago
Marked it as not https://github.com/rust-lang/rust-clippy/labels/I-suggestion-causes-error even though yeah that's an error because the label generally refers to non-lint errors
Suggestions triggering other lints is sometimes worked around for common occurrences but often we leave it as is, the extra checks can make the existing lints substantially more complicated
Summary
In some cases,
clippy::never_loop
suggests a replacement that would still triggerclippy::iter_skip_next
.Minimizing
clippy
feedback loops seems important to avoid user frustration. Therefore, it seems valuable to modifynever_loop
suggestions based on a check againstiter_skip_next
(and maybe other lints?), to ensure the modified snippet won't get rejected again.Reproducer
I tried this code in the Rust playground and ran Clippy:
I expected to see this happen:
Instead, this happened:
Version
Additional Labels
@rustbot label +I-suggestion-causes-error +L-suggestion