diff options
author | Aleksey Kladov <[email protected]> | 2020-07-31 13:40:28 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-31 13:40:28 +0100 |
commit | a6527ed92cb7a1156b8a118f5790d8c5fd69ab41 (patch) | |
tree | 807d7e40f6617b016eb88d47f764a738470a54f6 /xtask | |
parent | a6e45c6c69bf258118940941c12d057deb79e60c (diff) |
"Finalize" Types grammar
Note that `for` type is rust-analyzer's own invention.
Both the reference and syn allow `for` only for fnptr types, and we
allow them everywhere. This needs to be checked with respect to type
bounds grammar...
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 5dee85c2d..4015e3890 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -231,7 +231,7 @@ InferType = | |||
231 | '_' | 231 | '_' |
232 | 232 | ||
233 | FnPointerType = | 233 | FnPointerType = |
234 | Abi 'unsafe'? 'fn' ParamList RetType? | 234 | 'const'? 'async'? 'unsafe'? Abi? 'fn' ParamList RetType? |
235 | 235 | ||
236 | ForType = | 236 | ForType = |
237 | 'for' GenericParamList Type | 237 | 'for' GenericParamList Type |