You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parse and reject "typescript-style" anonymous enums #100741
Note: this had to be reverted because of the ambiguities. A new implementation has to be careful to only recover once invalid syntax has been discovered and not recover on the happy path.
To expand on the above: types can syntactically go in the same place closure and or binop expressions can, and macros that use | today need to continue working. Effectively, the new type parsing should be limited exclusively to type parameters, return types and maybe let binding types.
Activity
LYF1999 commentedon Aug 19, 2022
@rustbot claim
Rollup merge of rust-lang#106960 - estebank:parse-anon-enums, r=cjgillot
Rollup merge of rust-lang#106960 - estebank:parse-anon-enums, r=cjgillot
Rollup merge of rust-lang#106960 - estebank:parse-anon-enums, r=cjgillot
Noratrieb commentedon Mar 14, 2023
Note: this had to be reverted because of the ambiguities. A new implementation has to be careful to only recover once invalid syntax has been discovered and not recover on the happy path.
estebank commentedon Mar 15, 2023
To expand on the above: types can syntactically go in the same place closure and or binop expressions can, and macros that use
|today need to continue working. Effectively, the new type parsing should be limited exclusively to type parameters, return types and maybe let binding types.Rollup merge of rust-lang#106960 - estebank:parse-anon-enums, r=cjgillot
Phosphorus-M commentedon Jun 30, 2023
I love the idea! It's related to this RFC right?