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

Export type aliases in LLBC #134

Closed
msprotz opened this issue Apr 18, 2024 · 0 comments · Fixed by #216
Closed

Export type aliases in LLBC #134

msprotz opened this issue Apr 18, 2024 · 0 comments · Fixed by #216
Assignees
Labels
C-unsupported-language-feature A rust feature we don't extract well

Comments

@msprotz
Copy link
Contributor

msprotz commented Apr 18, 2024

This is particularly useful for Eurydice. I have a mechanism for picking user-provided type abbreviations, but instead end up generating things like this https://github.com/cryspen/hacl-packages/pull/457/files#diff-a94673428367ed62df2e7dd7d29ef4b6576ee2bd5e9cf33beed83e3f452e3602R106-R115 because I no longer have the information that the user had provided a custom name (much shorter) for these types.

This doesn't need to change anything else in Charon, the type abbreviations can still be inlined, it's just a matter of keeping the type alias also in scope for me to do something useful with it. Thanks!

@Nadrieril Nadrieril added the C-unsupported-language-feature A rust feature we don't extract well label Apr 23, 2024
@Nadrieril Nadrieril changed the title Retain type abbreviations before emitting LLBC Export type aliases in LLBC Apr 23, 2024
@Nadrieril Nadrieril self-assigned this Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-unsupported-language-feature A rust feature we don't extract well
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants