Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fill out windows io error mapping table #4046

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

CraftSpider
Copy link
Contributor

Adds a bunch more of the Windows error codes to the error mapping list. This is all the error codes currently recognized by std IO decoding (https://github.com/rust-lang/rust/blob/75703c1a78c3cd99fa1347b237f3966fb8860e98/library/std/src/sys/pal/windows/mod.rs#L74). When multiple errors map to the same io value, I chose to prefer-non WSA and the most generic sounding variant for the backwards mapping.

@RalfJung
Copy link
Member

Thanks!

When multiple errors map to the same io value, I chose to prefer-non WSA and the most generic sounding variant for the backwards mapping.

Please add a comment in the code documenting this choice.

@RalfJung RalfJung enabled auto-merge November 21, 2024 21:41
@cgettys-microsoft
Copy link
Contributor

@sivadeilra - here's one of the PRs related to adding Miri support for Windows FS APIs, RE: #3482

@RalfJung RalfJung added this pull request to the merge queue Nov 21, 2024
Merged via the queue into rust-lang:master with commit a5a293a Nov 21, 2024
7 checks passed
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.

3 participants