Skip to content

Enforce comment width in item lists - #7174

Draft
matthewhughes934 wants to merge 1 commit into
rust-lang:mainfrom
matthewhughes934:list-comment-length
Draft

matthewhughes934 wants to merge 1 commit into
rust-lang:mainfrom
matthewhughes934:list-comment-length

Conversation

@matthewhughes934

Copy link
Copy Markdown
Contributor

I noticed while investigating an issue[1] that these comments were being rewritten to max_width.

If you view more context in the modified test files, particularly tests/target/comments-in-lists/wrap-comments-not-normalized.rs, you'll see the changes are consistent with how existing comments in that test were formatted (albeit still inconsistent with some other comments, I'll handle these separately).

References: #7167 [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.

I noticed while investigating an issue[1] that these comments were being
rewritten to `max_width`.

If you view more context in the modified test files, particularly
`tests/target/comments-in-lists/wrap-comments-not-normalized.rs`, you'll
see the changes are consistent with how existing comments in that test
were formatted (albeit still inconsistent with some other comments, I'll
handle these separately).

References: rust-lang#7167 [1]
@rustbot rustbot added the S-waiting-on-author Status: awaiting some action (such as code changes or more information) from the author. label Oct 10, 2026

This branch has not been deployed

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

Labels

S-waiting-on-author Status: awaiting some action (such as code changes or more information) from the author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants