Skip to content

clippy: enable 'needless bool' checks - #7131

Closed
matthewhughes934 wants to merge 1 commit into
rust-lang:mainfrom
matthewhughes934:add-bool-check-clippy
Closed

matthewhughes934 wants to merge 1 commit into
rust-lang:mainfrom
matthewhughes934:add-bool-check-clippy

Conversation

@matthewhughes934

Copy link
Copy Markdown
Contributor

These were mentioned in the original clippy introduction thread[1], but I left them out of the originally introduction (05840bc) because I wanted to avoid code changes there. Add them now, including the fixes they introduce.

Link: #6923 (comment) [1]

  • I did not use an LLM to create a change in this PR.
  • I used an LLM to create a change in this PR, and I have explained below how it was used.

These were mentioned in the original `clippy` introduction thread[1],
but I left them out of the originally introduction
(05840bc) because I wanted to avoid
code changes there. Add them now, including the fixes they introduce.

Link: rust-lang#6923 (comment) [1]
@rustbot rustbot added A-CI Area: CI S-waiting-on-review Status: awaiting review from the assignee but also interested parties. labels Sep 21, 2026
@ytmimi ytmimi added the S-on-hold Status: PR/issue is on hold (due to bandwidth/prioritization/need discussions etc.). label Sep 21, 2026
@Manishearth
Manishearth added this pull request to the merge queue Sep 21, 2026
@ytmimi
ytmimi removed this pull request from the merge queue due to a manual request Sep 21, 2026
@ytmimi ytmimi closed this Sep 21, 2026
@rustbot rustbot removed the S-waiting-on-review Status: awaiting review from the assignee but also interested parties. label Sep 21, 2026
@ytmimi

ytmimi commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

I'd prefer we hold off on making any clippy changes until we've decided as a team which lints to apply

@ytmimi

ytmimi commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

@Manishearth also, I'd like to hold off on merging PRs until after the rustfmt sync.

@Manishearth

Copy link
Copy Markdown
Member

Oh, crap, for some reason I thought this was for clippy itself!

My bad.

@Manishearth

Copy link
Copy Markdown
Member

I was very surprised clippy itself didn't have this lint enabled

@ytmimi

ytmimi commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

All good. We caught it 😅

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

Labels

A-CI Area: CI S-on-hold Status: PR/issue is on hold (due to bandwidth/prioritization/need discussions etc.).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants