From: Pierre-Emmanuel Patry <[email protected]>
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 <[email protected]>
---
gcc/rust/lex/rust-token.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/rust/lex/rust-token.h b/gcc/rust/lex/rust-token.h
index 401452f515c..e38c3cf9943 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")
\
--
2.42.1