-
-
Notifications
You must be signed in to change notification settings - Fork 463
rand_core 0.4.2 (backports) #853
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
Conversation
These specialisations relied on casting a u8 byte slice to a u32 or u64 slice, which is UB due to alignment requirements.
The |
There is also 90501dc, but this would have to be backported to rand 0.6. |
Why are the CI tests not running for this branch? Otherwise it looks fine to me. |
That may be because I originally opened it vs the wrong branch... think I'll have to close this and re-open. |
The failure in the |
Yes indeed. It's clear from the macro expansion that the compiler is referring to features behind that feature flag:
It's clear from 😕 |
The I think therefore your macro is incorrect. Maybe the easiest solution would be to put the Inside |
I just published average 0.10.2, hopefully fixing this bug by conditionally defining different macros. You workaround was not complete, it seems |
Thanks. Then I'll bump the required version of I'll be away for a few days, so if I don't get this published I go then hopefully you can. |
Now the 1.22 builder fails. I'd prefer not to bump the Rustc version for this release, so I guess the other solution is needed. |
This feature is not applicable to rand, but is causing issues due to a bug in average.
Sorry about that, I have been following the minimal Rust version of Rand. However, it seems that disabling the serde tests worked. |
I forgot, we already pushed (and yanked) 0.4.1. I just bumped the version to 0.4.2 on master but publishing fails:
Unfortunately I don't have time to look into this now. |
Published |
As requested in #783.
Note @gnzlbg this does not include the
links
attribute we discussed yesterday (#850), because I don't believe this is the best fix.