rust/library/std
许杰友 Jieyou Xu (Joe) 1741b394da
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.
2024-11-25 00:39:05 +08:00
..
benches Reformat use declarations. 2024-07-29 08:26:52 +10:00
src Rollup merge of #133298 - n0toose:remove-dir-all-but-not-paths, r=Noratrieb 2024-11-25 00:39:05 +08:00
tests Avoid shadowing user provided types or type aliases in thread_local! 2024-10-18 10:27:41 +08:00
build.rs Enable f128 tests on all non-buggy platforms 🎉 2024-11-03 19:33:04 -06:00
Cargo.toml Emscripten: link with -sWASM_BIGINT 2024-11-11 17:25:50 +01:00