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

struct refmvs_block: Align a wrapper struct for an inner packed struct #233

Merged
merged 2 commits into from
May 8, 2023

Conversation

kkysen
Copy link
Collaborator

@kkysen kkysen commented May 8, 2023

Align by aligning a wrapper struct around an inner packed struct, as Rust doesn't allow packed and aligned types (see rust-lang/rust#59154).

…nner packed struct, as Rust doesn't allow packed and aligned types (see rust-lang/rust#59154).
@kkysen
Copy link
Collaborator Author

kkysen commented May 8, 2023

@ahomescu, @rinon, I saw that you had opened the Rust issue for this, rust-lang/rust#59154, and commented on it, so I wanted to ask, does this (the aligned wrapper struct) seem like a valid way to get around it for this case?

Copy link
Collaborator

@randomPoison randomPoison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment requesting a comment, feel free to merge after you add that.

src/refmvs.rs Show resolved Hide resolved
src/refmvs.rs Show resolved Hide resolved
src/refmvs.rs Show resolved Hide resolved
@kkysen kkysen merged commit 08bc82e into main May 8, 2023
@kkysen kkysen deleted the kkysen/fix-missing-align-struct-refmvs_block branch May 8, 2023 22:35
Sign up for free to 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.

3 participants