about summary refs log tree commit diff
path: root/src/test/ui/iterators/iter-count-overflow-debug.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2019-10-23 21:00:04 +0200
committerMara Bos <m-ou.se@m-ou.se>2019-10-23 21:21:25 +0200
commit18ae175d60039dfe2d2454e8e8099d3b08039862 (patch)
tree068d7ce776db3662f0172ce79e7110c8692d40a6 /src/test/ui/iterators/iter-count-overflow-debug.rs
parent4a8c5b20c7772bc5342b83d4b0696ea216ef75a7 (diff)
downloadrust-18ae175d60039dfe2d2454e8e8099d3b08039862.tar.gz
rust-18ae175d60039dfe2d2454e8e8099d3b08039862.zip
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