Skip to content

Fix off-by-one errors in rewrite_string_lit #109

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 2 commits into from
Jun 15, 2015
Merged

Fix off-by-one errors in rewrite_string_lit #109

merged 2 commits into from
Jun 15, 2015

Conversation

marcusklaas
Copy link
Contributor

Rustfmt currently loops indefinitely on very long string literals without whitespace.

Multi-line literals would typically have a character too many. Splitting of escape sequences also wasn't working correctly.
@marcusklaas marcusklaas mentioned this pull request Jun 15, 2015
nrc added a commit that referenced this pull request Jun 15, 2015
Fix off-by-one errors in rewrite_string_lit
@nrc nrc merged commit b74cdb7 into rust-lang:master Jun 15, 2015
@marcusklaas marcusklaas deleted the fix-string-lit branch September 11, 2015 09:23
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