]> git.lizzy.rs Git - rust.git/commit
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)
commitba928ba04116b70d81738a4f49c1b9b23aab7c88
treeb5e815cec92b34722d5346a59e8a8db4776614e4
parent8ae5116faeedcb325c0cc49d9c0f36ceaeba5616
parent020cca8d36cb678e3ddc2ead41364be314d19e93
Rollup merge of #106960 - estebank:parse-anon-enums, r=cjgillot

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.
compiler/rustc_parse/src/parser/ty.rs