We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 61adb5b + fd90198 commit d89341aCopy full SHA for d89341a
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