mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 04:48:13 +00:00
Fix Return Type Syntax to include .. (i.e. method(..) and not method()) as specified in the RFC
This commit is contained in:
parent
7106cd3be5
commit
21e6058ab7
12 changed files with 183 additions and 16 deletions
|
|
@ -38,8 +38,12 @@ PathSegment =
|
|||
'::'? NameRef
|
||||
| NameRef GenericArgList?
|
||||
| NameRef ParamList RetType?
|
||||
| NameRef ReturnTypeSyntax
|
||||
| '<' Type ('as' PathType)? '>'
|
||||
|
||||
ReturnTypeSyntax =
|
||||
'(' '..' ')'
|
||||
|
||||
|
||||
//*************************//
|
||||
// Generics //
|
||||
|
|
@ -59,7 +63,7 @@ TypeArg =
|
|||
|
||||
AssocTypeArg =
|
||||
NameRef
|
||||
(GenericArgList | ParamList RetType?)?
|
||||
(GenericArgList | ParamList RetType? | ReturnTypeSyntax)?
|
||||
(':' TypeBoundList | ('=' Type | ConstArg))
|
||||
|
||||
LifetimeArg =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue