-
Notifications
You must be signed in to change notification settings - Fork 20
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
Exporter get variant information works on unions #999
Exporter get variant information works on unions #999
Conversation
The helper function `get_variant_information` had an assertion about the ADT being anything but an union. This function works fine on unions, though. A union is just like a struct: the difference is the semantics of its only variant. This is unrelated to `VariantInformations`.
I don't expect this requires charon changes, the CI is only broken because I haven't yet fixed charon after last PR. That's just waiting on my CI: AeneasVerif/charon#418. |
That'll break charon here: https://github.com/AeneasVerif/charon/blob/75ebb6fccdf208b92343395cd05378790d0496c3/charon/src/bin/charon-driver/translate/translate_constants.rs#L87-L98 That's very easy to fix |
This is green on Charon 😃 (https://github.com/AeneasVerif/charon/actions/runs/11329658628/job/31506938774) |
@Nadrieril I tagged you as a reviewer just in case you have opinions, but feel free to ignore 😃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this is a nice improvement :)
0710210
to
8e81a9d
Compare
Fixes #997.
I have a meeting but then I'll push related changes in Charon.