Skip to content

Remove faulty shortcut in rewrite_string_lit #241

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
Sep 1, 2015
Merged

Remove faulty shortcut in rewrite_string_lit #241

merged 1 commit into from
Sep 1, 2015

Conversation

marcusklaas
Copy link
Contributor

Rustfmt would leave the literal unchanged when it did not exceed the column limit in its original position, not considering its position after formatting.

Rustfmt would leave the literal unchanged when it did not exceed the column limit in its original position, not considering its position after formatting.
yyyyyyyyyyyyyyyyyyyyy\
yyyyyyyyyyyyyyyyyyyyy\
yyyyyyyyyy");

Copy link
Member

Choose a reason for hiding this comment

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

this doesn't look like an improvement, but I guess we need more infra to fix it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not an improvement on the test source, but it is an improvement on how rustfmt would previously format this. It would put everything on a single line.

Copy link
Member

Choose a reason for hiding this comment

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

:-)

nrc added a commit that referenced this pull request Sep 1, 2015
Remove faulty shortcut in `rewrite_string_lit`
@nrc nrc merged commit 0264d92 into rust-lang:master Sep 1, 2015
@marcusklaas marcusklaas deleted the string-reformat branch September 1, 2015 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants