rust icon indicating copy to clipboard operation
rust copied to clipboard

Stabilize most of `io_error_more`

Open GrigorenkoPV opened this issue 1 year ago • 3 comments

Sadly, venting my frustration with t-libs-api is not a constructive way to solve problems and get things done, so I will try to stick to stuff that actually matters here.

  • Tracking issue for this feature was opened 3 years ago: #86442
  • FCP to stabilize it was completed 19(!!) months ago: https://github.com/rust-lang/rust/issues/86442#issuecomment-1368082102
  • A PR with stabilization was similarly open for 19 months: #106375, but nothing ever came out of it. Presumably (it is hard to judge given the lack of communication) because a few of the variants still had some concerns voiced about them, even after the FCP.

So, to highlight a common sentiment:

Maybe uncontroversial variants can be stabilised first and other variants (such as QuotaExceeded or FilesystemLoop) later? ^1

I would like to voice support stabilization of the uncontroversial variants. This would get those variants to stable and focus the discussion around the more controversial ones. I don't see any particular reason that all of these must be stabilized at the same time. [...] ^2

Maybe some less-controversial subset could be stabilized sooner? What’s blocking this issue from making progress? [^3]

[^3]: https://github.com/rust-lang/rust/issues/86442#issuecomment-1691187483 (got 30 upvotes btw) (and no response)

So this is exactly what this PR does. It stabilizes the non-controversial variants now, leaving just a few of them behind.

Namely, this PR stabilizes:

  • HostUnreachable
  • NetworkUnreachable
  • NetworkDown
  • NotADirectory
  • IsADirectory
  • DirectoryNotEmpty
  • ReadOnlyFilesystem
  • StaleNetworkFileHandle
  • StorageFull
  • NotSeekable
  • FileTooLarge
  • ResourceBusy
  • ExecutableFileBusy
  • Deadlock
  • TooManyLinks
  • ArgumentListTooLong
  • Unsupported

This PR does not stabilize:

  • FilesystemLoop
  • FilesystemQuotaExceeded
  • CrossesDevices
  • InvalidFilename

Hopefully, this will allow us to move forward with this highly and long awaited addition to std, both allowing to still polish the less clear parts of it and not leading to stagnation.

r? joshtriplett because they seem to be listed as a part of t-libs-api and were one of the most responsive persons previously

GrigorenkoPV avatar Jul 28 '24 19:07 GrigorenkoPV

r? libs

GrigorenkoPV avatar Aug 12 '24 15:08 GrigorenkoPV

As much as I'd like to help out here, I am not in the libs-api team and should not be the one reviewing this.

r? libs-api

joboet avatar Aug 12 '24 16:08 joboet

r? libs-api

GrigorenkoPV avatar Aug 26 '24 05:08 GrigorenkoPV

r? libs-api

GrigorenkoPV avatar Sep 09 '24 16:09 GrigorenkoPV

Maybe you can nominate it for T-libs-api discussion.

slanterns avatar Sep 09 '24 16:09 slanterns

@rustbot label: +I-libs-api-nominated

slanterns avatar Sep 09 '24 16:09 slanterns

Let's try

@rustbot label +I-libs-api-nominated

Nevermind, it was done while I was writing this. Thank you!


My apologies if I am beeing too pushy with this, it is just that I am worried this PR may suffer the same fate as the previous efforts and fall into indefinite stagnation.

As for re-rolling the reviewers, my reasoning was that if a reviewer is too busy to review this PR, someone else might be less occupied at the moment. Rustbot's default message promises "two weeks for the reviewer to take a look at your PR or pass it to someone else", so that is how long I have waited each time.

GrigorenkoPV avatar Sep 09 '24 16:09 GrigorenkoPV

@bors r+

dtolnay avatar Sep 09 '24 20:09 dtolnay

:pushpin: Commit f693910dcd0fe82ade55b666dc93f2fcfb3e31f9 has been approved by dtolnay

It is now in the queue for this repository.

bors avatar Sep 09 '24 20:09 bors

This is missing a relnotes label

golddranks avatar Oct 08 '24 04:10 golddranks

@rustbot label +relnotes

Wonder if I have enough rights for that

GrigorenkoPV avatar Oct 08 '24 10:10 GrigorenkoPV