Skip to content

Conversation

@Bobo1239
Copy link
Contributor

Rust 1.55 unfortunately breaks the existing code which assumed that
ErrorKind::Other will be returned by fs::read_dir() when a file is
encountered. For now just always try deleting as if it's a file with the
possibility to add the optimization back again once the io_error_more
feature is stabilized.

References:

Rust 1.55 unfortunately breaks the existing code which assumed that
ErrorKind::Other will be returned by fs::read_dir() when a file is
encountered. For now just always try deleting as if it's a file with the
possibility to add the optimization back again once the `io_error_more`
feature is stabilized.

References:
- https://blog.rust-lang.org/2021/09/09/Rust-1.55.0.html#stdioerrorkind-variants-updated
- rust-lang/rust#85746
- rust-lang/rust#86442
Copy link
Owner

@Byron Byron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! Even though it's great to see more detailed io error codes, it's the second project that was bitten by it by surprise and I wonder if there would have been other ways to introduce this, like a deprecation period. Otherwise everybody would be expected to test against beta or nightly where this might or might not have surfaced in the first place.

But I am rambling, a new release will be out soon :).

@Byron Byron merged commit f45681a into Byron:main Sep 18, 2021
@Byron
Copy link
Owner

Byron commented Sep 18, 2021

v2.14.7 was just released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants