Skip to content

Lint unused parentheses around method receiver#151986

Draft
chenyukang wants to merge 2 commits intorust-lang:mainfrom
chenyukang:yukang-fix-151985-unused-parens-method-receiver
Draft

Lint unused parentheses around method receiver#151986
chenyukang wants to merge 2 commits intorust-lang:mainfrom
chenyukang:yukang-fix-151985-unused-parens-method-receiver

Conversation

@chenyukang
Copy link
Copy Markdown
Member

@chenyukang chenyukang commented Feb 2, 2026

Extends the unused_parens lint to detect unnecessary parentheses around method receivers like (x).method().

Fixes #151985

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiler-builtins Area: compiler-builtins (https://github.com/rust-lang/compiler-builtins) S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. 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. T-rust-analyzer Relevant to the rust-analyzer team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unused_parens does not lint parentheses around method receiver

4 participants