From 24e8aee3194616fc37d0cfb340554be8c3ea1147 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Fri, 24 May 2024 19:18:07 +0000 Subject: [PATCH] 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: - https://github.com/rust-lang/rust/issues/123904 --- src/keywords.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/keywords.md b/src/keywords.md index 1855a35d0..e65af8a75 100644 --- a/src/keywords.md +++ b/src/keywords.md @@ -90,6 +90,11 @@ The following keywords are reserved beginning in the 2018 edition. > **Lexer 2018+**\ > KW_TRY : `try` +The following keywords are reserved beginning in the 2024 edition. + +> **Lexer 2024+**\ +> KW_GEN : `gen` + ## Weak keywords These keywords have special meaning only in certain contexts. For example, it