rust-clippy icon indicating copy to clipboard operation
rust-clippy copied to clipboard

Add new lint `shadow_type_generic`

Open devodev opened this issue 8 months ago • 9 comments

Add a new restriction lint shadow_type_generic that checks for generic parameters that shadow types in scope.

Closes: rust-lang/rust-clippy#380

changelog: [shadow_type_generic]: new lint

Summary Notes

Managed by @rustbot—see help for details

devodev avatar Jun 22 '25 23:06 devodev

r? @dswij

rustbot has assigned @dswij. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

rustbot avatar Jun 23 '25 00:06 rustbot

r? clippy

dswij avatar Jun 28 '25 08:06 dswij

Dear contributor. Clippy has entered a feature freeze period and will not be integrating new lints for a few weeks. You can rest assured that the Clippy team will review and discuss your proposal at the end of the feature freeze period.

If you wish to contribute to Clippy in the meantime, do not hesitate to read the pinned tracking issue about the feature freeze itself.

@rustbot label +A-lint +S-blocked -S-waiting-on-review @rustbot note "Feature freeze"

samueltardieu avatar Jun 29 '25 17:06 samueltardieu

:umbrella: The latest upstream changes (possibly 368b2355797b13511776f0a35ec4864468b87ece) made this pull request unmergeable. Please resolve the merge conflicts.

rustbot avatar Sep 08 '25 08:09 rustbot

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

rustbot avatar Nov 01 '25 14:11 rustbot

:umbrella: The latest upstream changes (possibly e121ab877ee1b0d9c8395b70ecab895222c10f57) made this pull request unmergeable. Please resolve the merge conflicts.

rustbot avatar Nov 02 '25 09:11 rustbot

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

rustbot avatar Nov 02 '25 13:11 rustbot

r? clippy

I just saw that this PR is active again. Re-assigning, as I don't have review capacity at the moment. (I wonder why r? clippy picks me for reviews in the first place, as I'm not in the general rotation, only for some specific files :thinking: )

flip1995 avatar Nov 03 '25 17:11 flip1995

:umbrella: The latest upstream changes (possibly c48592eb49d984aee2f813336e2363798e004119) made this pull request unmergeable. Please resolve the merge conflicts.

rustbot avatar Nov 14 '25 14:11 rustbot