Skip to content

Keep array types on same line as prefix for statics - #6995

Open
Blackgaurd wants to merge 2 commits into
rust-lang:mainfrom
Blackgaurd:fix-6976
Open

Keep array types on same line as prefix for statics#6995
Blackgaurd wants to merge 2 commits into
rust-lang:mainfrom
Blackgaurd:fix-6976

Conversation

@Blackgaurd

Copy link
Copy Markdown

Fix for: #6976

Mimicking how types are rewritten in rewrite_struct_field:

  • Try rewriting type by itself on the rest of the line.
  • If it doesn't fit one line, use rewrite_assign_rhs.

@rustbot rustbot added the S-waiting-on-review Status: awaiting review from the assignee but also interested parties. label Jul 29, 2026
@Blackgaurd Blackgaurd changed the title Fix 6976 Keep array types on same line as prefix for statics Jul 29, 2026
@ytmimi ytmimi self-assigned this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants