Coq backend: handle constructors with bases (aka `{field: expr, ..base}` in rust)
For now, the base is just skipped:
struct Foo {
a: u8,
b: u8,
}
fn f(x: Foo) -> Foo {
Foo { a: 3, ..x }
}
Gets translated as:
Record Foo_tFoo : Type :={
b : int8;
a : int8;
}.
Definition f (x : Foo_t) : Foo_t :=
Build_Foo_t (@repr WORDSIZE8 3).
There's also, something wrong with field projectors, related to #132
@cmester0, is that still an issue or it's supported now?
This issue has been marked as stale due to a lack of activity for 60 days. If you believe this issue is still relevant, please provide an update or comment to keep it open. Otherwise, it will be closed in 7 days.
@cmester0 is this fixed by #987
This issue has been marked as stale due to a lack of activity for 60 days. If you believe this issue is still relevant, please provide an update or comment to keep it open. Otherwise, it will be closed in 7 days.
@cmester0 is this fixed or does this need work?
Please re-open @cmester0 if still relevant.