-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
A-lintArea: New lintsArea: New lintsgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
struct Foo {}
struct<Foo> Bar { f: Foo }
Should warn that Foo
in Bar
shadows the struct Foo
declared previously.
Summary Notes
Generated by triagebot, see help for how to add more
Metadata
Metadata
Assignees
Labels
A-lintArea: New lintsArea: New lintsgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
samueltardieu commentedon May 8, 2025
In modern Rust, a test-case could be
Also, with today's compiler structure, working with a HIR visitor should be enough to detect such shadowing.
@rustbot label +good-first-issue -E-hard -T-middle
@rustbot note test-case-example
shadow_type_generic
#15109devodev commentedon Jun 22, 2025
I'd like to try and tackle this as my first contribution.
@rustbot claim