aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-11-16 13:11:33 +0100
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-11-21 12:45:32 +0000
commit27da3bb4a9b16d33e4675544b38df256f706e23c (patch)
tree085183291398d8e9d5c0f9a5f0e58bf8b406801e /gcc
parent52a5b5d535231b353d6074e739dcb13073bcd77e (diff)
downloadgcc-27da3bb4a9b16d33e4675544b38df256f706e23c.zip
gcc-27da3bb4a9b16d33e4675544b38df256f706e23c.tar.gz
gcc-27da3bb4a9b16d33e4675544b38df256f706e23c.tar.bz2
Add await keyword
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>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/lex/rust-token.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/lex/rust-token.h b/gcc/rust/lex/rust-token.h
index 5adf001..5762cbe 100644
--- a/gcc/rust/lex/rust-token.h
+++ b/gcc/rust/lex/rust-token.h
@@ -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") \