mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
"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...
This commit is contained in:
parent
a6e45c6c69
commit
a6527ed92c
3 changed files with 4 additions and 3 deletions
|
@ -231,7 +231,7 @@ InferType =
|
|||
'_'
|
||||
|
||||
FnPointerType =
|
||||
Abi 'unsafe'? 'fn' ParamList RetType?
|
||||
'const'? 'async'? 'unsafe'? Abi? 'fn' ParamList RetType?
|
||||
|
||||
ForType =
|
||||
'for' GenericParamList Type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue