Skip to content

Conversation

clementblaudeau
Copy link
Contributor

Rust structures can be defined by extending a "base" struct:

let _ = S { f1: 0, ..s1 };

This directly corresponds to the lean structure update syntax:

let _ = {s1 with f1 := 0 }

Closes #1637

@clementblaudeau clementblaudeau requested a review from a team as a code owner October 8, 2025 10:30
@clementblaudeau clementblaudeau force-pushed the lean-struct-base-expression branch from c445065 to 7ed75a1 Compare October 8, 2025 10:32
@clementblaudeau clementblaudeau requested a review from keks October 8, 2025 10:32
Copy link
Member

@keks keks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looks good!

@clementblaudeau clementblaudeau added this pull request to the merge queue Oct 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 9, 2025
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.

[Lean] Do not ignore base expressions for constructors of structs

3 participants