Skip to content

fix: split a line exceeding the maximum width #6572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure to split a line exceeding the maximum width
3 participants