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

Support if let guards in pattern matchings #814

Closed
maximebuyse opened this issue Jul 30, 2024 · 1 comment · Fixed by #821
Closed

Support if let guards in pattern matchings #814

maximebuyse opened this issue Jul 30, 2024 · 1 comment · Fixed by #821
Labels
engine Issue in the engine enhancement New feature or request

Comments

@maximebuyse
Copy link
Contributor

maximebuyse commented Jul 30, 2024

Guards in pattern matchings are supported in Rust but not necessarily in hax backends. We want to support them, and even a generalization with if-let guards (if-lets in guards are a nightly feature in Rust). They should be rewritten by a dedicated phase (see #806).

@W95Psp W95Psp added enhancement New feature or request engine Issue in the engine labels Jul 31, 2024
@W95Psp
Copy link
Collaborator

W95Psp commented Jul 31, 2024

@maximebuyse can you add a bit more info here? e.g. link to Rust manual for if let, the fact it's nightly, also that we want to support "simple" if guards but also if let chains in the future (we should btw open new issues for those)

Oh and one important point is that we do if lets first because it's helpful for #806

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Issue in the engine enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants