Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/rust.ungram')
-rw-r--r--crates/syntax/rust.ungram5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/syntax/rust.ungram b/crates/syntax/rust.ungram
index 02c59646a9..30428329dd 100644
--- a/crates/syntax/rust.ungram
+++ b/crates/syntax/rust.ungram
@@ -37,7 +37,7 @@ Path =
PathSegment =
'::'? NameRef
| NameRef GenericArgList?
-| NameRef ParamList RetType?
+| NameRef ParenthesizedArgList RetType?
| NameRef ReturnTypeSyntax
| '<' Type ('as' PathType)? '>'
@@ -49,6 +49,9 @@ ReturnTypeSyntax =
// Generics //
//*************************//
+ParenthesizedArgList =
+ '::'? '(' (TypeArg (',' TypeArg)* ','?)? ')'
+
GenericArgList =
'::'? '<' (GenericArg (',' GenericArg)* ','?)? '>'