Skip to content

Supress unused_parens lint for guard patterns - #150882

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
eggyal:issue-149594
Jan 11, 2026
Merged

Supress unused_parens lint for guard patterns#150882
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
eggyal:issue-149594

Conversation

@eggyal

@eggyaleggyal commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

Fixes#149594

@rustbotrustbot added 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. labels Jan 9, 2026
@rustbot

Copy link
Copy Markdown
Collaborator

r? @JonathanBrouwer

rustbot has assigned @JonathanBrouwer.
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

@JonathanBrouwer

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-borsrust-borsBot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 9, 2026
@rust-bors

rust-borsBot commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 2a39322 has been approved by JonathanBrouwer

It is now in the queue for this repository.

rust-borsBot added a commit that referenced this pull request Jan 10, 2026
Rollup of 11 pull requests
Successful merges:
- #150269 (Remove inactive nvptx maintainer)
- #150713 (mgca: Type-check fields of struct expr const args)
- #150765 (rustc_parse_format: improve error for missing `:` before `?` in format args)
- #150847 (Fix broken documentation links to SipHash)
- #150867 (rustdoc_json: Remove one call to `std::mem::take` in `after_krate`)
- #150872 (Fix some loop block coercion diagnostics)
- #150874 (Ignore `rustc-src-gpl` in fast try builds)
- #150875 (Refactor artifact keep mode in bootstrap)
- #150876 (Mention that `rustc_codegen_gcc` is a subtree in `rustc-dev-guide`)
- #150882 (Supress unused_parens lint for guard patterns)
- #150884 (Update bors email in CI postprocessing step)
Failed merges:
- #150869 (Emit error instead of delayed bug when meeting mismatch type for const tuple)
r? @ghost
rust-borsBot added a commit that referenced this pull request Jan 10, 2026
Rollup of 11 pull requests
Successful merges:
- #150269 (Remove inactive nvptx maintainer)
- #150713 (mgca: Type-check fields of struct expr const args)
- #150765 (rustc_parse_format: improve error for missing `:` before `?` in format args)
- #150847 (Fix broken documentation links to SipHash)
- #150867 (rustdoc_json: Remove one call to `std::mem::take` in `after_krate`)
- #150872 (Fix some loop block coercion diagnostics)
- #150874 (Ignore `rustc-src-gpl` in fast try builds)
- #150875 (Refactor artifact keep mode in bootstrap)
- #150876 (Mention that `rustc_codegen_gcc` is a subtree in `rustc-dev-guide`)
- #150882 (Supress unused_parens lint for guard patterns)
- #150884 (Update bors email in CI postprocessing step)
Failed merges:
- #150869 (Emit error instead of delayed bug when meeting mismatch type for const tuple)
r? @ghost
@rust-bors
rust-borsBot merged commit e7b0803 into rust-lang:mainJan 11, 2026
11 checks passed
@rustbotrustbot added this to the 1.94.0 milestone Jan 11, 2026
rust-timer added a commit that referenced this pull request Jan 11, 2026
Rollup merge of #150882 - issue-149594, r=JonathanBrouwer
Supress unused_parens lint for guard patterns
Fixes#149594
@eggyal
eggyal deleted the issue-149594 branch January 11, 2026 03:12
github-actionsBot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Jan 12, 2026
Rollup of 11 pull requests
Successful merges:
- rust-lang/rust#150269 (Remove inactive nvptx maintainer)
- rust-lang/rust#150713 (mgca: Type-check fields of struct expr const args)
- rust-lang/rust#150765 (rustc_parse_format: improve error for missing `:` before `?` in format args)
- rust-lang/rust#150847 (Fix broken documentation links to SipHash)
- rust-lang/rust#150867 (rustdoc_json: Remove one call to `std::mem::take` in `after_krate`)
- rust-lang/rust#150872 (Fix some loop block coercion diagnostics)
- rust-lang/rust#150874 (Ignore `rustc-src-gpl` in fast try builds)
- rust-lang/rust#150875 (Refactor artifact keep mode in bootstrap)
- rust-lang/rust#150876 (Mention that `rustc_codegen_gcc` is a subtree in `rustc-dev-guide`)
- rust-lang/rust#150882 (Supress unused_parens lint for guard patterns)
- rust-lang/rust#150884 (Update bors email in CI postprocessing step)
Failed merges:
- rust-lang/rust#150869 (Emit error instead of delayed bug when meeting mismatch type for const tuple)
r? @ghost
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parens around guard patterns wrongly assumed unnecessary

3 participants

@eggyal@rustbot@JonathanBrouwer