Skip to content

Incorporate charon changes to the frontend#1765

Merged
W95Psp merged 69 commits intocryspen:mainfrom
Nadrieril:merge-upstream
Nov 18, 2025
Merged

Incorporate charon changes to the frontend#1765
W95Psp merged 69 commits intocryspen:mainfrom
Nadrieril:merge-upstream

Conversation

@Nadrieril
Copy link
Copy Markdown
Collaborator

This merges in the changes I did to the frontend for the purposes of Charon in the last couple of months. I have not propagated the changes beyond what I needed in charon so this doesn't build as it is. The most impactful is likely to be the update to the rustc version.

@W95Psp
Copy link
Copy Markdown
Contributor

W95Psp commented Nov 12, 2025

Thanks, I'm looking into it :)

Nadrieril and others added 8 commits November 13, 2025 14:38
Wrongly, the F* backend assumes tuples of size 1 are equivalent to the underlying type, e.g. `(T,)` reduces to `T`.
While assuming that about tuples, a projection `tuple_of_size_1.0` (in Rust) will result in a projection in F* as well: `tuple_of_size_1._1`.
Since `tuple_of_size_1` is typed `T` and not `Tuple1 T` in F*, this is ill-typed.

This commit doesn't change the wrong translation of `(T,)` as `T`, but fixes the latter translation.

This commit fixes the THIR importer, which inserted 0 as tuple length in projectors.
This commit also makes the F* backend skip field projections on tuples of size one.

This is a quickfix; the F* backend in the OCaml engine being legacy, we don't want to maintain it further.
@W95Psp W95Psp added this pull request to the merge queue Nov 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 18, 2025
@W95Psp
Copy link
Copy Markdown
Contributor

W95Psp commented Nov 18, 2025

Let's see if cloudflare is back

@W95Psp W95Psp added this pull request to the merge queue Nov 18, 2025
Merged via the queue into cryspen:main with commit e59c77d Nov 18, 2025
18 checks passed
@Nadrieril Nadrieril deleted the merge-upstream branch November 19, 2025 11:17
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

Successfully merging this pull request may close these issues.

6 participants