about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/asm.rs
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-11-25 00:39:05 +0800
committerGitHub <noreply@github.com>2024-11-25 00:39:05 +0800
commit1741b394da9818aea67deb66a2b5cf4ddc2a1440 (patch)
treee1a54f6fa62c268c51a8eda3fb3094dfa339b99f /compiler/rustc_codegen_llvm/src/asm.rs
parent8d20d71256af83d1e26a1f8c402c9938d3d1de86 (diff)
parent197bba5a2e834ab62aadff6932fe9059fa41f950 (diff)
downloadrust-1741b394da9818aea67deb66a2b5cf4ddc2a1440.tar.gz
rust-1741b394da9818aea67deb66a2b5cf4ddc2a1440.zip
Rollup merge of #133298 - n0toose:remove-dir-all-but-not-paths, r=Noratrieb
Mention that std::fs::remove_dir_all fails on files

This is explicitly mentioned for std::fs::remove_file.

It is more likely for a slightly lazy programmer to believe that removing a file would work and that they do not have to distinguish between directories (with contents) and files themself, because of the function's recursive nature and how it distinguishes between files and directories when removing them.

Follow-up for #133183.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/asm.rs')
0 files changed, 0 insertions, 0 deletions