[PATCH 3/3] Remove Enumaration Expression, EnumExpr, classes

2021-08-31 Thread Mark Wielaard
An Enumaration Expression is just like a Struct Expression. Old versions of the Rust Reference described them separately. But since they are syntactically exactly like a Struct Expression they are never actually parsed. A Struct Expression can also be used to initialize enums (and unions). Remove

[PATCH 2/3] StructExprUnit doesn't really exist

2021-08-31 Thread Mark Wielaard
A StructExprUnit is parsed as an IdentifierExpr. An IdentifierExpr, which is what we call a single segment PathInExpression. After type checking, when generating gcc generic trees, if the IdentifierExpr is a type reference (which must be a unit struct), then a unit expression is generated. Remove

Cleanup some StructExpr related classes

2021-08-31 Thread Mark Wielaard
Hi, There are various Structure Expressions that don't actually "exist" because they are syntactically equivalent to other constructs. So we never really construct or use these classes. But they are still listed in various visitors, which is somewhat confusing. Removing the AST and HIR variants of

[PATCH 1/3] StructExprTuple doesn't really exist

2021-08-31 Thread Mark Wielaard
A StructExprTuple is parsed as a CallExpr. Both (can) start with a PathInExpression followed by zero or more Expressions between brackets. Only, after type checking, when actually generating gcc generic trees is a distinction made between a function call or tuple constructor. Remove the AST and H

GCC Rust community call

2021-08-31 Thread Philip Herron
Hi everyone, It's that time again, and we will have our regular monthly call. - Date and Time 3rd September 2021 at 1000 (BST, which is UTC+1) - Agenda: https://hackmd.io/wflqJlFvS6edEsqf1oo-Hg, please feel free to add agenda items you wish to see discussed. - Jitsi: https://meet.jit.