-
Notifications
You must be signed in to change notification settings - Fork 34
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
Fix temporary references for volatile read #12
Conversation
Bump, as this compatibility lint reached stable today. |
The CI is failing because |
@poliorcetics thanks for pointing that out! |
I agree the CI checks don't affect the rest, but keeping 1.51 as the minimum check in CI means new code will less easily break it. I'm personally not affected by high MSRVs but I think keeping it to three or four versions back at least is nice for people who can only update their compiler after some time (notably in entreprise projects) |
Valid point! I have never thought of that. However, the msvc targets in the recipe even use nightly without a fixed date. I am not sure to what extent the author wants to maintain the compatibility. Maybe @MSxDOS can explain a bit so that the others can help? |
This fixes a compile error of a dependency. cf. <MSxDOS/ntapi#12>
This fixes a compile error of a dependency. cf. <MSxDOS/ntapi#12>
This fixes a compile error of a dependency. cf. <MSxDOS/ntapi#12>
This fixes a compile error of a dependency. cf. <MSxDOS/ntapi#12>
This fixes a compile error of a dependency. cf. <MSxDOS/ntapi#12>
Any chance this fix could be backported and released as |
@hecrj Changes in |
@bdbai I am not depending on |
hey, we second on this. really appreciate cc: @yihau |
@MSxDOS : friendly ping. :) hope releasing this small 0.3.8 won't take much time. |
* Bump Rust toolchain version for CI to 1.64 * Fix temporary references for volatile read
* Patch ntapi to restore windows build * Update Cargo.lock... * Add comment for justification of this patching MSxDOS/ntapi#11 MSxDOS/ntapi#12 * Revert "ci: stop windows building on master temporarily (#31353)" This reverts commit 2dcdfff. * Use solana-labs fork * Ugh..
* Bump Rust toolchain version for CI to 1.64 * Fix temporary references for volatile read
* Patch ntapi to restore windows build * Update Cargo.lock... * Add comment for justification of this patching MSxDOS/ntapi#11 MSxDOS/ntapi#12 * Revert "ci: stop windows building on master temporarily (solana-labs#31353)" This reverts commit 2dcdfff. * Use solana-labs fork * Ugh..
* Shift crossbeam comment for upcoming 2nd patch... (#31963) * Patch ntapi to restore windows build (#31961) * Patch ntapi to restore windows build * Update Cargo.lock... * Add comment for justification of this patching MSxDOS/ntapi#11 MSxDOS/ntapi#12 * Revert "ci: stop windows building on master temporarily (#31353)" This reverts commit 2dcdfff. * Use solana-labs fork * Ugh.. * Patch ntapi more thoroughly (#31970) * Patch spl-token-cli build as well... * Patch sbf/Cargo.toml for consistency * Remove --locked for cli-arg based patch... (#31971) * Bump patched ntapi from v0.3.6 to v0.3.7 (#31981) * Revert "ci: stop windows build (#31893)" This reverts commit 30f9e43.
fyi: for anyone who is still stuck at ntapi 0.3.x, I've patched ntapi like this: solana-labs/solana#31982 |
Taking a reference to an unaligned field is an undefined behavior, even if it is converted to a pointer immediately. Although the memory access here must be aligned given the fixed base address and the offset of the field, rustc still issue a warning due to the struct being 4 packed. Here we can use
core::ptr::addr_of
to create a pointer to a field without introducing a reference.Fixes #11.