Add support for impl mode structs to be repr(packed)#388
Merged
KodrAus merged 2 commits intobitflags:mainfrom Dec 30, 2023
Merged
Add support for impl mode structs to be repr(packed)#388KodrAus merged 2 commits intobitflags:mainfrom
KodrAus merged 2 commits intobitflags:mainfrom
Conversation
Contributor
Author
|
Seems like CI failing is unrelated? |
|
This should probably have a test to ensure it continues to work. |
Contributor
Author
|
Seems like there aren't any tests for |
Member
|
Hi @GnomedDev 👋 Thanks for the PR. If you add a test to |
2bcecf8 to
43fe59f
Compare
43fe59f to
843cc04
Compare
Contributor
Author
|
Hey @KodrAus, just done that! |
KodrAus
approved these changes
Dec 30, 2023
Member
KodrAus
left a comment
There was a problem hiding this comment.
Thanks @GnomedDev! This looks good to me.
Contributor
Author
|
Thanks for merging, any chance for a release now with this in? I'm stoked to use it! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This allows the following code to compile, with the only downside being a possible copy of the internal value for non-packed types, although I'm somewhat certain that would be optimised out.