Skip to content

Commit 24e8aee

Browse files
committed
Document gen keyword as reserved in Rust 2024
Following RFC 3513 and subsequent work, the `gen` keyword is reserved in the Rust 2024 edition. Let's document that. See tracking issue: - rust-lang/rust#123904
1 parent e356977 commit 24e8aee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/keywords.md

+5
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ The following keywords are reserved beginning in the 2018 edition.
9090
> **<sup>Lexer 2018+</sup>**\
9191
> KW_TRY : `try`
9292
93+
The following keywords are reserved beginning in the 2024 edition.
94+
95+
> **<sup>Lexer 2024+</sup>**\
96+
> KW_GEN : `gen`
97+
9398
## Weak keywords
9499

95100
These keywords have special meaning only in certain contexts. For example, it

0 commit comments

Comments
 (0)