Unify structures and enum variants in AST
This commit is contained in:
parent
ec4362da56
commit
ea47c2b6b3
13 changed files with 97 additions and 226 deletions
|
|
@ -1594,7 +1594,7 @@ pub struct EnumDef {
|
|||
pub struct Variant_ {
|
||||
pub name: Ident,
|
||||
pub attrs: Vec<Attribute>,
|
||||
pub kind: VariantKind,
|
||||
pub def: P<StructDef>,
|
||||
pub id: NodeId,
|
||||
/// Explicit discriminant, eg `Foo = 1`
|
||||
pub disr_expr: Option<P<Expr>>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue