diff options
Diffstat (limited to 'xtask/src/codegen/rust.ungram')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 16 |
1 files changed, 8 insertions, 8 deletions
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 = | |||
197 | | ArrayType | 197 | | ArrayType |
198 | | SliceType | 198 | | SliceType |
199 | | ReferenceType | 199 | | ReferenceType |
200 | | PlaceholderType | 200 | | InferType |
201 | | FnPointerType | 201 | | FnPointerType |
202 | | ForType | 202 | | ForType |
203 | | ImplTraitType | 203 | | ImplTraitType |
@@ -206,28 +206,28 @@ Type = | |||
206 | ParenType = | 206 | ParenType = |
207 | '(' Type ')' | 207 | '(' Type ')' |
208 | 208 | ||
209 | TupleType = | ||
210 | '(' fields:Type* ')' | ||
211 | |||
212 | NeverType = | 209 | NeverType = |
213 | '!' | 210 | '!' |
214 | 211 | ||
215 | PathType = | 212 | PathType = |
216 | Path | 213 | Path |
217 | 214 | ||
215 | TupleType = | ||
216 | '(' fields:(Type (',' Type)* ','?)? ')' | ||
217 | |||
218 | PointerType = | 218 | PointerType = |
219 | '*' ('const' | 'mut') Type | 219 | '*' ('const' | 'mut') Type |
220 | 220 | ||
221 | ReferenceType = | ||
222 | '&' 'lifetime'? 'mut'? Type | ||
223 | |||
221 | ArrayType = | 224 | ArrayType = |
222 | '[' Type ';' Expr ']' | 225 | '[' Type ';' Expr ']' |
223 | 226 | ||
224 | SliceType = | 227 | SliceType = |
225 | '[' Type ']' | 228 | '[' Type ']' |
226 | 229 | ||
227 | ReferenceType = | 230 | InferType = |
228 | '&' 'lifetime'? 'mut'? Type | ||
229 | |||
230 | PlaceholderType = | ||
231 | '_' | 231 | '_' |
232 | 232 | ||
233 | FnPointerType = | 233 | FnPointerType = |