about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2022-03-07 18:51:53 -0800
committerJosh Stone <jistone@redhat.com>2022-03-07 18:51:53 -0800
commitef3e33bd16b1392f8f238c1224cd58d5fb95b555 (patch)
tree2236c9fe27fd00973a0b82f7bd2184c98c043834 /compiler/rustc_codegen_llvm
parent03918badd33d255de806b4a9a8aa75b031ed0738 (diff)
downloadrust-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