Skip to content

Commit 0aa41be

Browse files
authored
Rollup merge of #91668 - ChrisDenton:bootstrap-clean-error, r=Mark-Simulacrum
Remove the match on `ErrorKind::Other` It's a) superfluous and b) doesn't work any more.
2 parents 0b42dea + caed83d commit 0aa41be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bootstrap/clean.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ 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)]
79-
if matches!(e.kind(), std::io::ErrorKind::Other)
80-
&& e.raw_os_error() == Some(145)
81-
{
81+
if e.raw_os_error() == Some(145) {
8282
return Ok(());
8383
}
8484

0 commit comments

Comments
 (0)