Skip to content

[DO NOT MERGE] Method receiver lint#152214

Draft
BennoLossin wants to merge 6 commits intorust-lang:mainfrom
BennoLossin:method-receiver-lint
Draft

[DO NOT MERGE] Method receiver lint#152214
BennoLossin wants to merge 6 commits intorust-lang:mainfrom
BennoLossin:method-receiver-lint

Conversation

@BennoLossin
Copy link
Copy Markdown
Contributor

@BennoLossin BennoLossin commented Feb 6, 2026

This is implementing the lint described in #151583. The plan is to run a crater run on this lint before deciding on how to add this to the language.

An important detail that I noticed when implementing was that it must recursively look at the target type. Since dereferencing to a concrete type that then derefs to a generic has the same problem.

Loading
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. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants