about summary refs log tree commit diff
path: root/src/test/ui/iterators/iter-count-overflow-debug.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-25 13:12:50 +0200
committerGitHub <noreply@github.com>2019-10-25 13:12:50 +0200
commit3e3f21cd0ac3dfd019f8ecc4bb07a7b6dfb73daf (patch)
treee1d4e7f1548a16d9639616b1cc1251ee8f8e1a2e /src/test/ui/iterators/iter-count-overflow-debug.rs
parentf1d747a99dd32919ca719ae49d2e7673c6ab689e (diff)
parent18ae175d60039dfe2d2454e8e8099d3b08039862 (diff)
downloadrust-3e3f21cd0ac3dfd019f8ecc4bb07a7b6dfb73daf.tar.gz
rust-3e3f21cd0ac3dfd019f8ecc4bb07a7b6dfb73daf.zip
Rollup merge of #65731 - fusion-engineering-forks:set-extension, r=dtolnay
Prevent unnecessary allocation in PathBuf::set_extension.

It was allocating a new `OsString` that was immediately dropped after using it with `set_file_name`. Now it directly changes the extension in the original buffer, without touching the rest of the file name or allocating a temporary string.
Diffstat (limited to 'src/test/ui/iterators/iter-count-overflow-debug.rs')
0 files changed, 0 insertions, 0 deletions