]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #106960 - estebank:parse-anon-enums, r=cjgillot
authorMatthias Krüger <matthias.krueger@famsik.de>
Thu, 26 Jan 2023 05:15:24 +0000 (06:15 +0100)
committerGitHub <noreply@github.com>
Thu, 26 Jan 2023 05:15:24 +0000 (06:15 +0100)
Teach parser to understand fake anonymous enum syntax

Parse `Ty | OtherTy` in function argument and return types.
Parse type ascription in top level patterns.

Minimally address #100741.

1  2 
compiler/rustc_parse/src/parser/ty.rs

Simple merge