Skip to content

refactor using ExprParenthesesNeeded where possible#156125

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
GTimothy:refactor-exprparenthesesneeded
May 4, 2026
Merged

refactor using ExprParenthesesNeeded where possible#156125
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
GTimothy:refactor-exprparenthesesneeded

Conversation

@GTimothy
Copy link
Copy Markdown
Contributor

@GTimothy GTimothy commented May 3, 2026

Found multiple instances where the equivalent of ExprParenthesesNeeded was done 'manually'.
Replaced them with an ExprParenthesesNeeded::surrounding call.

found multiple instances where the equivalent of ExprParenthesesNeeded
was done 'manually'.
replaced them with a `ExprParenthesesNeeded::surrounding` call
@rustbot rustbot 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 May 3, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 3, 2026

r? @ShoyuVanilla

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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 73 candidates
  • Random selection from 22 candidates

Copy link
Copy Markdown
Member

@ShoyuVanilla ShoyuVanilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ShoyuVanilla
Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 4, 2026

📌 Commit ed2356a has been approved by ShoyuVanilla

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 May 4, 2026
rust-bors Bot pushed a commit that referenced this pull request May 4, 2026
Rollup of 3 pull requests

Successful merges:

 - #156120 (Regression test for trait-system-refactor#7)
 - #156125 (refactor using ExprParenthesesNeeded where possible)
 - #156132 (More lifting tweaks)
@rust-bors rust-bors Bot merged commit 06c89cf into rust-lang:main May 4, 2026
11 checks passed
@rustbot rustbot added this to the 1.97.0 milestone May 4, 2026
rust-timer added a commit that referenced this pull request May 4, 2026
Rollup merge of #156125 - GTimothy:refactor-exprparenthesesneeded, r=ShoyuVanilla

refactor using ExprParenthesesNeeded where possible

Found multiple instances where the equivalent of `ExprParenthesesNeeded` was done 'manually'.
Replaced them with an `ExprParenthesesNeeded::surrounding` call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant 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.

3 participants