diff options
| author | bors <bors@rust-lang.org> | 2023-09-14 23:05:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-14 23:05:24 +0000 |
| commit | 6734e96ba4f0872e1245665d8c7c85e56c61fd1f (patch) | |
| tree | 42c737da1dd0190b0fc812f42533e9640f40f7d9 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | b27fc10aa890a8cbc00f7d361ffd58da40dcd6ea (diff) | |
| parent | 3c0fc15848395ed5ef714c8817df8bd4f1bc430f (diff) | |
| download | rust-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/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
