We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ec000a7 + fd90198 commit bdb44d0Copy full SHA for bdb44d0
src/bootstrap/src/core/build_steps/clean.rs
@@ -203,10 +203,8 @@ fn rm_rf(path: &Path) {
203
204
do_op(path, "remove dir", |p| match fs::remove_dir(p) {
205
// Check for dir not empty on Windows
206
- // FIXME: Once `ErrorKind::DirectoryNotEmpty` is stabilized,
207
- // match on `e.kind()` instead.
208
#[cfg(windows)]
209
- Err(e) if e.raw_os_error() == Some(145) => Ok(()),
+ Err(e) if e.kind() == ErrorKind::DirectoryNotEmpty => Ok(()),
210
r => r,
211
});
212
}
0 commit comments