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

Update Aeneas to remove the marker traits #347

Open
sonmarcho opened this issue Nov 6, 2024 · 3 comments
Open

Update Aeneas to remove the marker traits #347

sonmarcho opened this issue Nov 6, 2024 · 3 comments

Comments

@sonmarcho
Copy link
Member

Today, we have to call Charon with the option --hide-marker-traits, which is quite annoying and error prone.

@R1kM
Copy link
Member

R1kM commented Nov 6, 2024

Without this option, extracting code such as the following fails:

pub enum CList<T> {
    CCons(T, Box<CList<T>>),
    CNil,
}

This is due to the translation of trait instance ids:

craise_opt_span __FILE__ __LINE__ span "Unreachable"

The solution would be to add a prepass to remove these, similarly to what is done in Charon.

@Nadrieril
Copy link
Member

I'd prefer if aeneas called charon by itself

@sonmarcho
Copy link
Member Author

Yes that makes sense. I opened an issue: #349

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants