Skip to content

Commit 2a5b30a

Browse files
authored
Merge pull request rust-analyzer/ungrammar#4 from Apanatshka/patch-1
Make type in Param optional
2 parents e4b6301 + 4c04751 commit 2a5b30a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/lib/ungrammar/rust.ungram

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ SelfParam =
146146

147147
Param =
148148
Attr* (
149-
Pat (':' Type)
149+
Pat (':' Type)?
150150
| Type
151151
| '...'
152152
)

0 commit comments

Comments
 (0)