-
-
Notifications
You must be signed in to change notification settings - Fork 476
fix compilation on uefi targets #1665
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: usamoi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't feel like the right way to do this: clearly #1537 failed to isolate rand
from getrandom
changes.
Do you need a patch release for rand_core
?
Note that technically it's a breaking change. I think we can UPD: On the second thought, since the current code does not compile on the UEFI targets, then this change can be considered non-breaking since it only affects "broken" targets. |
No. I can use the patch locally, so this is not necessary for me.
I'm fine with waiting to merge it into |
@usamoi could you add a note to @newpavlov I think |
@dhardy |
@newpavlov the argument not to export
|
So there is a fundamental difference between a pub-export of Implication: depending on Once |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking as 👍 but if the next getrandom
release is made soon this may be replaced.
CHANGELOG.md
entrySummary
On uefi targets, the return type of
std::io::Error::raw_os_error
isOption<usize>
, instead ofOption<i32>
. Inrand_core
, it is assumed asOption<i32>
. This PR usesOption<usize>
as the return type on the uefi targets.getrandom
has already handled this: https://github.com/rust-random/getrandom/blob/18d89843981b93032b2a2c6f1e33897075a8d727/src/error.rs#L6-L19