Skip to content

Add new lint shadow_type_generic #15109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

devodev
Copy link

@devodev devodev commented Jun 22, 2025

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

Closes: #380

changelog: [shadow_type_generic]: new lint

Summary Notes

Managed by @rustbot—see help for details

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

Signed-off-by: Alexandre Barone <[email protected]>
@devodev devodev force-pushed the pr/devodev/new-lint-shadow-type-generic branch from 69325c4 to cf09da7 Compare June 22, 2025 23:25
@devodev devodev marked this pull request as ready for review June 23, 2025 00:24
@rustbot
Copy link
Collaborator

rustbot commented Jun 23, 2025

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 rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 23, 2025
@dswij
Copy link
Member

dswij commented Jun 28, 2025

r? clippy

@rustbot rustbot assigned flip1995 and unassigned dswij Jun 28, 2025
@samueltardieu
Copy link
Contributor

samueltardieu commented Jun 29, 2025

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"

@rustbot rustbot added A-lint Area: New lints S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Jun 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shadowing of types via Generic Parameter
5 participants