rust/tests
Ivan Komarov 00a20bceff Fix formatting failures on Windows
When newline_style is set to Windows, an empty line inside of a macro
results in `\r` being passed to the `fold()` in `MacroBranch::rewrite()`.

`\r` is technically not an empty string, so we try to indent it, leaving
trailing whitespaces behind, even though that was not intended
(as far as I can see).

This commit replaces the `!l.is_empty()` check with calling
`is_empty_line()`, since trying to indent any whitespace-only string
will probably result in problematic trailing whitespaces.

Fixes: #2810
2018-10-28 02:37:55 +03:00
..
config Switch to comments for rustfmt config 2018-06-19 09:30:50 -04:00
coverage Replace WriteMode with EmitMode and backup bool 2018-05-21 14:14:09 +12:00
source Add a test for #3137 2018-10-26 16:36:01 +09:00
target Fix formatting failures on Windows 2018-10-28 02:37:55 +03:00
writemode Replace WriteMode with EmitMode and backup bool 2018-05-21 14:14:09 +12:00