mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
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.
This commit is contained in:
commit
0aa41bea97
@ -75,10 +75,10 @@ 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 matches!(e.kind(), std::io::ErrorKind::Other)
|
||||
&& e.raw_os_error() == Some(145)
|
||||
{
|
||||
if e.raw_os_error() == Some(145) {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user