Skip to content

Commit

Permalink
Document gen keyword as reserved in Rust 2024
Browse files Browse the repository at this point in the history
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
  • Loading branch information
traviscross authored and ehuss committed Nov 25, 2024
1 parent 4ad2685 commit f5fac38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/keywords.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ The following keywords are reserved beginning in the 2018 edition.
> **<sup>Lexer 2018+</sup>**\
> KW_TRY : `try`
The following keywords are reserved beginning in the 2024 edition.

> **<sup>Lexer 2024+</sup>**\
> KW_GEN : `gen`
## Weak keywords

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

0 comments on commit f5fac38

Please sign in to comment.