Skip to content

Named enum fields are not named #43

@aapoalas

Description

@aapoalas
enum Foo {
  A { x: u32, y: u32 },
  B { y: u32, z: u32 },
}

should result in

struct FooRef<'a> {
  discriminant: &'a FooDiscriminant,
  x: &'a FooFieldX,
  y: &'a FooFieldY,
  z: FooFieldZ,
}

Right now we instead get field0 and field1 corresponding to union { A::x, B::y } and union { A::y, B::z }.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions