about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-14 23:05:24 +0000
committerbors <bors@rust-lang.org>2023-09-14 23:05:24 +0000
commit6734e96ba4f0872e1245665d8c7c85e56c61fd1f (patch)
tree42c737da1dd0190b0fc812f42533e9640f40f7d9 /tests/codegen/src-hash-algorithm
parentb27fc10aa890a8cbc00f7d361ffd58da40dcd6ea (diff)
parent3c0fc15848395ed5ef714c8817df8bd4f1bc430f (diff)
downloadrust-6734e96ba4f0872e1245665d8c7c85e56c61fd1f.tar.gz
rust-6734e96ba4f0872e1245665d8c7c85e56c61fd1f.zip
Auto merge of #11505 - Alexendoo:metadata-collector-truncate, r=Manishearth
Truncate files when opening in metadata-collector

Fixes the issue seen here https://github.com/rust-lang/rust-clippy/pull/11483#discussion_r1324687136 and in a couple other PRs

The changelog file was opened without truncating it, so if the new version is shorter than the old one stray contents would remain at the end of the file

The other two files first removed the file so didn't have this problem, but in all cases we now use `fs::write`/`File::create` which is write + create + truncate

changelog: none
Diffstat (limited to 'tests/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions