Lint for Iterator + Copy #1534
Labels
A-lint
Area: New lints
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
good-first-issue
These issues are a good way to get started with Clippy
L-correctness
Lint: Belongs in the correctness lint group
Implementing
Copy
for iterators makes footguns, and the standard library settled not to do so for now.Clippy should have a lint that warns if "use of the original iterator after copied" is detected.
The text was updated successfully, but these errors were encountered: