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

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

Signed-off-by: Alexandre Barone <abalexandrebarone@gmail.com>
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shadowing of types via Generic Parameter
4 participants