about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorTim <tdhutt@gmail.com>2020-06-23 01:20:29 +0100
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2022-01-02 10:06:06 -0600
commit894a3c0e7745ece39fcee89d38389a789cfe520a (patch)
tree1cc3d805a4b23508289b33685b245eb334ff76cf /src/test/codegen/src-hash-algorithm
parent776baf93f8fd1e2f3a66da4c2a1dd92114cef9c6 (diff)
downloadrust-894a3c0e7745ece39fcee89d38389a789cfe520a.tar.gz
rust-894a3c0e7745ece39fcee89d38389a789cfe520a.zip
Fix newlines in JSON output (#4262)
* Fix newlines in JSON output

This changes the JSON output to be more consistent about where newlines are included. Previously it only included them between lines in a multiline diff. That meant single line changes were treated a bit weirdly. This changes it to append a newline to every line.

When feeding the results into `arc lint` this behaves correctly. I have only done limited testing though, in particular there's a possibility it might not work with files with `\r\n` endings (though that would have been the case before too).

Fixes #4259

* Update tests
# Conflicts:
#	tests/writemode/target/output.json
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions