Skip to content

std: map Haiku's B_UNSUPPORTED to ErrorKind::Unsupported - #166184

Open
shamnad-sherief wants to merge 1 commit into
rust-lang:mainfrom
shamnad-sherief:haiku-b-unsupported
Open

shamnad-sherief wants to merge 1 commit into
rust-lang:mainfrom
shamnad-sherief:haiku-b-unsupported

Conversation

@shamnad-sherief

@shamnad-sherief shamnad-sherief commented Nov 19, 2026 •

Copy link
Copy Markdown

closes #166134

@rustbot rustbot added A-io Area: `std::io` (note: `std::fs`, `std::net`, `std::path` are A-filesystem, A-net, A-path) S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 19, 2026
@rustbot

rustbot commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Error: Failed to set assignee to <maxdexh>: invalid assignee

Note: Only org members with at least the repository "read" role, users with write permissions, or people who have commented on the PR may be assigned.

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip.

@shamnad-sherief
shamnad-sherief marked this pull request as ready for review November 19, 2026 08:37
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 19, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Nov 19, 2026
@rustbot

rustbot commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust Project has assigned @Mark-Simulacrum (or someone else) to review your changes, you should hear from them (or someone else) within the next two weeks.

Please see the contribution instructions and our LLM policy for more information.

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 38 candidates
  • Random selection from ChrisDenton, JohnTitor, Mark-Simulacrum, clarfonthey, maxdexh

@rustbot

This comment has been minimized.

@joboet

joboet commented Nov 19, 2026

Copy link
Copy Markdown
Member

This seems very reasonable. If I remember correctly, changing the error code categorisation requires FCP, so

@rfcbot merge libs

@rust-rfcbot

rust-rfcbot commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

@joboet has proposed to merge this. The next step is review by the rest of the tagged team members:

No concerns currently listed.

Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

cc @rust-lang/libs-ping: FCP proposed for libs, please feel free to register concerns.
See this document for info about what commands tagged team members can give me.

@rust-rfcbot rust-rfcbot added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. labels Nov 19, 2026
@clarfonthey

Copy link
Copy Markdown
Contributor

This seems very reasonable. If I remember correctly, changing the error code categorisation requires FCP, so

Hmm, just for clarity, do we want to apply this to all target-specific behaviour, or are OS error codes a special case of a stable API effectively due to from_os_error?

@maxdexh

maxdexh commented Nov 19, 2026

Copy link
Copy Markdown
Member

This only affects tier 3 targets. I'd argue this doesn't even need a proper review, let alone an FCP 🙃

@tgross35

Copy link
Copy Markdown
Member

This only affects tier 3 targets. I'd argue this doesn't even need a proper review, let alone an FCP 🙃

This is actually something we've talked about before; the resolution was that API changes even for T3 targets should go through the normal procedures, because T3 targets can very easily make their way to T2 or T1.

@maxdexh

maxdexh commented Nov 19, 2026

Copy link
Copy Markdown
Member

This is actually something we've talked about before; the resolution was that API changes even for T3 targets should go through the normal procedures, because T3 targets can very easily make their way to T2 or T1.

I don't really buy that reasoning; I see tier 3 targets more like nightly features, since they require -Zbuild-std, need an FCP to become stable, and can disappear at any point. But if it's agreed upon procedure then fine ^^

@Mark-Simulacrum Mark-Simulacrum added S-waiting-on-fcp Status: PR is in FCP and is awaiting for FCP to complete. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 22, 2026

This branch has not been deployed

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

Labels

A-io Area: `std::io` (note: `std::fs`, `std::net`, `std::path` are A-filesystem, A-net, A-path) disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. S-waiting-on-fcp Status: PR is in FCP and is awaiting for FCP to complete. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Haiku's B_UNSUPPORTED raw os error should translate to io::ErrorKind::Unsupported

8 participants