]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #68409 - sinkuu:temp_path, r=Mark-Simulacrum
authorTyler Mandry <tmandry@gmail.com>
Thu, 23 Jan 2020 00:02:14 +0000 (16:02 -0800)
committerGitHub <noreply@github.com>
Thu, 23 Jan 2020 00:02:14 +0000 (16:02 -0800)
commitf9b0561031b5ddeca0985c1551c4076243efced1
treed816e7c603945b6e5f05402a6e5f0f43a30e6823
parentbd090c9e8a3fe43174b4935d9c45d743313074f7
parentdc97181a0966cd1686a70ce06849a19c196f72eb
Rollup merge of #68409 - sinkuu:temp_path, r=Mark-Simulacrum

Micro-optimize OutputFilenames

For example, its methods consume 6% of time during debug-compiling a `warp` example:
![Screenshot (debug-compiling a `warp` example)](https://user-images.githubusercontent.com/7091080/72780288-d74f1580-3c61-11ea-953b-34e59ca682f9.png)

This PR optimize them a bit by using `PathBuf::set_extension` instead of `Path::with_extension`, to avoid cloning `PathBuf` excessively.
src/librustc_session/config.rs