]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add await keyword
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 16 Nov 2023 12:11:33 +0000 (13:11 +0100)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Tue, 21 Nov 2023 12:45:32 +0000 (12:45 +0000)
The 2018 edition await keyword was missing from the keyword list.

gcc/rust/ChangeLog:

* lex/rust-token.h (enum PrimitiveCoreType): Add await keyword
definition.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/lex/rust-token.h

index 5adf00164b137906e3af42b0b0d4ef934d60c7a3..5762cbebdbb603536ef7fcf09ba342972c9f32f1 100644 (file)
@@ -150,6 +150,7 @@ enum PrimitiveCoreType
   RS_TOKEN_KEYWORD_2015 (AS, "as")                                             \
   RS_TOKEN_KEYWORD_2018 (ASYNC, "async") /* unused */                          \
   RS_TOKEN_KEYWORD_2015 (AUTO, "auto")                                         \
+  RS_TOKEN_KEYWORD_2018 (AWAIT, "await")                                       \
   RS_TOKEN_KEYWORD_2015 (BECOME, "become") /* unused */                        \
   RS_TOKEN_KEYWORD_2015 (BOX, "box")      /* unused */                        \
   RS_TOKEN_KEYWORD_2015 (BREAK, "break")                                       \