Skip to content

Allow Error::raw_os_error to return non-i32 codes - #569

Merged
newpavlov merged 3 commits into
masterfrom
tweak_error
Dec 18, 2024
Merged

Allow Error::raw_os_error to return non-i32 codes#569
newpavlov merged 3 commits into
masterfrom
tweak_error

Conversation

@newpavlov

@newpavlovnewpavlov commented Dec 18, 2024

Copy link
Copy Markdown
Member

This allows us to remove some UEFI-specific exceptions from the code.

This PR only partially resolves#568 since we still use NonZeroU32 on UEFI targets, but it should be sufficient to future-proof ourselves for the v0.3 release.

Comment threadsrc/error.rs Outdated
@newpavlov
newpavlov merged commit dc89211 into masterDec 18, 2024
@newpavlov
newpavlov deleted the tweak_error branch December 18, 2024 21:28
@josephlrjosephlr mentioned this pull request Dec 18, 2024
takumi-earth pushed a commit to earthlings-dev/getrandom that referenced this pull request Jan 27, 2026
This allows us to remove some UEFI-specific exceptions from the code.
This PR only partially resolvesrust-random#568 since we still use `NonZeroU32` on
UEFI targets, but it should be sufficient to future-proof ourselves for
the v0.3 release.
Sign up for freeto 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.

Error on targets where RawOsError is not equal to i32

2 participants

@newpavlov@josephlr