Skip to content

Remove EnumItemDiscriminant class #3340

Open
@CohenArthur

Description

@CohenArthur

Per the Rust reference: https://doc.rust-lang.org/reference/items/enumerations.html

Meaning that all possible enum items (identifiers, structs or tuples) can have a discriminant, even in 1.49 - however, the feature was still experimental back then.

Still, we need to remove the EnumItemDiscriminant class and instead add an optional std::unique_ptr<Expr> to the base EnumItem class, for all enum items to use it if required.

Eventually we'll also need to fix the parser to handle this

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions