Line breaks in string literal + ascii escape code changes meaning #4471
Labels
1x-backport:pending
Fixed/resolved in source but not yet backported to a 1x branch and release
only-with-option
requires a non-default option value to reproduce
poor-formatting
Input
Output
Expected output
The two outputs are different. Playground. As the split is across the
"\u{1f}"
it breaks this up and instead creates a\\"
, which means the line gets a"\"
and indentation as the"\"
that was inserted was escaped by the"\"
that was ment to escape the hex literal.rustfmt.toml
Meta
rustfmt 1.4.22-nightly (97d03010 2020-10-04)
The text was updated successfully, but these errors were encountered: