-
Notifications
You must be signed in to change notification settings - Fork 4
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
Why does this crate use packed representation in a bunch of places? #9
Comments
Why would this error happen? Since I'm not using |
I'm far from an expert on linking, so I don't really know why the linker ever cares about alignment. But separately, I wouldn't be surprised at all if |
Well,
|
Right.. Well the error from the issue description has now infected our CI and my small PR fixes it there as well.
If you don't want to merge without actually finding out why it might be wrong, I can understand. Maybe my colleage who has started to implement their own linker has some insights, I'll ask them. |
Yes, I want to know why it happens, to know whether the PR is a fix for a const_panic bug or a workaround for a compiler bug. |
A colleague of mine got this linker error today:
First I thought that it seems really unlikely for
const_panic
to actually be related to the problem, but when looking at the codebase a bit I found a few uses of#[repr(packed)]
as well as onePacked<&'a str>
inPanicVariant
that seems highly suspicious. What is the reason for using packed representation, in particular there? Is it just for efficiency?The text was updated successfully, but these errors were encountered: