Skip to content

Commit caed83d

Browse files
committed
Add reminder to match the error kind once DirectoryNotEmpty is stabilized
1 parent 913996b commit caed83d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/clean.rs

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ fn rm_rf(path: &Path) {
7575
do_op(path, "remove dir", |p| {
7676
fs::remove_dir(p).or_else(|e| {
7777
// Check for dir not empty on Windows
78+
// FIXME: Once `ErrorKind::DirectoryNotEmpty` is stabilized,
79+
// match on `e.kind()` instead.
7880
#[cfg(windows)]
7981
if e.raw_os_error() == Some(145) {
8082
return Ok(());

0 commit comments

Comments
 (0)