]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add await keyword
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 16 Nov 2023 12:11:33 +0000 (13:11 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 30 Jan 2024 11:36:44 +0000 (12:36 +0100)
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 401452f515c345e19b0b95c94faca0469e736185..e38c3cf99433f3e0580bc0c07ed91ca7b79750cd 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")                                       \