Skip to content

Commit 54279e0

Browse files
committed
Rollup merge of #28205 - matklad:grammar-remove-proc, r=alexcrichton
As I understand, there are no proc closures in Rust any more. So this pr removes `procedure_type` production. It isn't used anywhere. The `proc` is still a keyword. r? @steveklabnik @bors: r+ rollup
2 parents 3501973 + 59f2343 commit 54279e0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/doc/grammar.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,6 @@ return_expr : "return" expr ? ;
753753
```antlr
754754
closure_type := [ 'unsafe' ] [ '<' lifetime-list '>' ] '|' arg-list '|'
755755
[ ':' bound-list ] [ '->' type ]
756-
procedure_type := 'proc' [ '<' lifetime-list '>' ] '(' arg-list ')'
757-
[ ':' bound-list ] [ '->' type ]
758756
lifetime-list := lifetime | lifetime ',' lifetime-list
759757
arg-list := ident ':' type | ident ':' type ',' arg-list
760758
bound-list := bound | bound '+' bound-list

0 commit comments

Comments
 (0)