From a6e45c6c69bf258118940941c12d057deb79e60c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 31 Jul 2020 13:22:47 +0200 Subject: Reame PlaceholderType -> InferType --- xtask/src/codegen/rust.ungram | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'xtask/src/codegen') diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 8f0e66278..5dee85c2d 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram @@ -197,7 +197,7 @@ Type = | ArrayType | SliceType | ReferenceType -| PlaceholderType +| InferType | FnPointerType | ForType | ImplTraitType @@ -206,28 +206,28 @@ Type = ParenType = '(' Type ')' -TupleType = - '(' fields:Type* ')' - NeverType = '!' PathType = Path +TupleType = + '(' fields:(Type (',' Type)* ','?)? ')' + PointerType = '*' ('const' | 'mut') Type +ReferenceType = + '&' 'lifetime'? 'mut'? Type + ArrayType = '[' Type ';' Expr ']' SliceType = '[' Type ']' -ReferenceType = - '&' 'lifetime'? 'mut'? Type - -PlaceholderType = +InferType = '_' FnPointerType = -- cgit v1.2.3