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

Use is_aligned_to in FromBytes once it's available #1038

Open
wedsonaf opened this issue Oct 15, 2023 · 4 comments
Open

Use is_aligned_to in FromBytes once it's available #1038

wedsonaf opened this issue Oct 15, 2023 · 4 comments
Labels
good first issue Good for newcomers • lib Related to the `rust/` library.

Comments

@wedsonaf
Copy link
Member

We currently do a "manual" check for alignment.

#1037 (comment)

@wedsonaf wedsonaf added the good first issue Good for newcomers label Oct 15, 2023
@ojeda ojeda added the • lib Related to the `rust/` library. label Oct 15, 2023
@ojeda
Copy link
Member

ojeda commented Oct 15, 2023

Added to the list.

@obeis
Copy link

obeis commented Nov 5, 2023

I am going to work on it. Can someone please assign it to me?

@y86-dev
Copy link
Collaborator

y86-dev commented Nov 6, 2023

the feature pointer_is_aligned has not yet been stabilized, see rust-lang/rust#96284

@ojeda
Copy link
Member

ojeda commented Apr 5, 2024

is_aligned() is getting stabilized in 1.79 (is_aligned_to() got split into another feature gate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers • lib Related to the `rust/` library.
Development

No branches or pull requests

4 participants