Skip to content

Conversation

ynishimi
Copy link
Contributor

The trailing = was not taken into account when rewriting the pattern. This caused an error of the pattern exceeding the max_width.

This PR is nearly identical to #6224, but the change is gated on StyleEdition::Edition2027 or newer.

Fixes #6202.

Copy link
Contributor

@ytmimi ytmimi left a comment

Choose a reason for hiding this comment

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

Thanks for picking up where #6224 left off.

@ytmimi ytmimi merged commit 18f4fa3 into rust-lang:master May 31, 2025
26 checks passed
@ytmimi ytmimi mentioned this pull request May 31, 2025
@ynishimi ynishimi deleted the max_width_split branch May 31, 2025 15:19
@ytmimi ytmimi added release-notes Needs an associated changelog entry a-2027-edition Style Edition 2027 and removed pr-not-reviewed labels Jun 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a-2027-edition Style Edition 2027 release-notes Needs an associated changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure to split a line exceeding the maximum width

3 participants