-
Notifications
You must be signed in to change notification settings - Fork 181
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
Add callback to get layout data #518
Comments
Which wf checks? Rust-analyzer doesn't calculate the layout of types and I don't think it will anytime soon. |
Rust-analyzer doesn't do any WF checking either though, so we can probably get away with a stub implementation of these callbacks. |
@rustbot claim I still need to understand what needs to be done as part of this issue and if anybody has already done anything like this somewhere else. |
My first hunch would be that this method needs to be added to the |
@vringar if you're no longer working on this, can I give it a go? |
Go ahead! |
To perform some of wf checks, we need access to type layout data. For now we need two things: alignment and whether or not a type is a ZST. Note that computing layout needs access to the environment, so the callback will need to accept it as a parameter.
The text was updated successfully, but these errors were encountered: