diff options
| author | Josh Stone <jistone@redhat.com> | 2022-03-07 18:51:53 -0800 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2022-03-07 18:51:53 -0800 |
| commit | ef3e33bd16b1392f8f238c1224cd58d5fb95b555 (patch) | |
| tree | 2236c9fe27fd00973a0b82f7bd2184c98c043834 /compiler/rustc_codegen_llvm | |
| parent | 03918badd33d255de806b4a9a8aa75b031ed0738 (diff) | |
| download | rust-ef3e33bd16b1392f8f238c1224cd58d5fb95b555.tar.gz rust-ef3e33bd16b1392f8f238c1224cd58d5fb95b555.zip | |
unix: Avoid name conversions in `remove_dir_all_recursive`
Each recursive call was creating an `OsString` for a `&Path`, only for it to be turned into a `CString` right away. Instead we can directly pass `.name_cstr()`, saving two allocations each time.
Diffstat (limited to 'compiler/rustc_codegen_llvm')
0 files changed, 0 insertions, 0 deletions
