diff options
| author | Chris Denton <christophersdenton@gmail.com> | 2021-12-09 14:39:30 +0000 |
|---|---|---|
| committer | Chris Denton <christophersdenton@gmail.com> | 2021-12-09 14:39:30 +0000 |
| commit | caed83d400b70ac5cd1d246c8cfdf1f9a5f888fe (patch) | |
| tree | 1ae8a4f87e819b0049cb9b5febc8288ba2f414cd /src/bootstrap | |
| parent | 913996b8ee8cbbab1651ad7702b23ad837b58c6d (diff) | |
| download | rust-caed83d400b70ac5cd1d246c8cfdf1f9a5f888fe.tar.gz rust-caed83d400b70ac5cd1d246c8cfdf1f9a5f888fe.zip | |
Add reminder to match the error kind once ` DirectoryNotEmpty` is stabilized
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/clean.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/clean.rs b/src/bootstrap/clean.rs index 7b8ce12bb4f..3b73dc1c7df 100644 --- a/src/bootstrap/clean.rs +++ b/src/bootstrap/clean.rs @@ -75,6 +75,8 @@ fn rm_rf(path: &Path) { do_op(path, "remove dir", |p| { fs::remove_dir(p).or_else(|e| { // Check for dir not empty on Windows + // FIXME: Once `ErrorKind::DirectoryNotEmpty` is stabilized, + // match on `e.kind()` instead. #[cfg(windows)] if e.raw_os_error() == Some(145) { return Ok(()); |
