Skip to content

Rollup of 3 pull requests - #165671

Closed
Zalathar wants to merge 24 commits into
rust-lang:mainfrom
Zalathar:rollup-ZpFaGaf
Closed

Zalathar wants to merge 24 commits into
rust-lang:mainfrom
Zalathar:rollup-ZpFaGaf

Conversation

@Zalathar

@Zalathar Zalathar commented Nov 9, 2026

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

susitsm and others added 24 commits November 5, 2026 14:22
* Keep comments inside parens when suggesting to remove unused delims
* Only shrink unused delim spans when there is a comment
* Always point at the delimiters alone in unused delims warnings
* Use a single shrink closure for unused delim spans
…eyouxu

Refactor enum layout calculation

Moves layout calculation of enums to its own file, chunks large functions into smaller ones and makes some variables immutable
…comments, r=adwinwhite

Keep comments inside parens when suggesting to remove unused delims

When there's a comment between a paren and the inner expression, `unused_parens` suggests removing
it along with the paren, and with line breaks the spans cover the whole block. This points at the
delimiters only in that case, and only removes the delimiter on a side that has a comment.

Fixes rust-lang#164722

FYI, tests are written with the help of AI. I reviewed and they are working as expected. Thanks
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Nov 9, 2026
@rustbot rustbot added A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc 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-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Nov 9, 2026
@Zalathar

Zalathar commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

Rollup of everything.

@bors r+ rollup=never p=5 force

@rust-bors

rust-bors Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 589cc01 has been approved by Zalathar

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 Nov 9, 2026
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job test-x86_64-gnu-tools failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
.....                                              (155/155)

======== tests/rustdoc-gui/search-corrections.goml ========

[ERROR] line 39: TimeoutError: Navigation timeout of 30000 ms exceeded: for command `go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"`
    at <file:///checkout/obj/build/x86_64-unknown-linux-gnu/test/rustdoc-gui/doc/test_docs/index.html?search=-%3E%20NotableStructWithLongNamr>

======== tests/rustdoc-gui/search-result-display.goml ========

[WARNING] line 38: Delta is 0 for "x", maybe try to use `compare-elements-position` instead?

@Zalathar

Zalathar commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

Looks flaky. I’ll close this and make a larger rollup, which will retry the job.

@Zalathar Zalathar closed this Nov 9, 2026
@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 9, 2026
@rust-bors

rust-bors Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

This pull request was unapproved due to being closed.

@Zalathar
Zalathar deleted the rollup-ZpFaGaf branch November 9, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc rollup A PR which is a rollup 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-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants