about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-03-08 22:44:00 +0100
committerGitHub <noreply@github.com>2022-03-08 22:44:00 +0100
commita67b6299b4b738e2f0482eba0549e64f8b5081a7 (patch)
treef914797a874d9b075421dc824f2c6186b15fbff2 /compiler/rustc_codegen_llvm/src
parentff54e34463c1af0025e29d41ebfbc1dfb4083e15 (diff)
parentef3e33bd16b1392f8f238c1224cd58d5fb95b555 (diff)
downloadrust-a67b6299b4b738e2f0482eba0549e64f8b5081a7.tar.gz
rust-a67b6299b4b738e2f0482eba0549e64f8b5081a7.zip
Rollup merge of #94724 - cuviper:rmdirall-cstr, r=Dylan-DPC
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/src')
0 files changed, 0 insertions, 0 deletions