diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-11-22 10:35:44 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-30 12:36:47 +0100 |
commit | 68990dbeadc5f4b90c0aa14387cb80d0f411aa43 (patch) | |
tree | ba2ff8e950ddfe09ccc0a3588b39461425f71b5f /gcc/rust/checks/errors/rust-ast-validation.cc | |
parent | 12844c82dec296c8530594211a65b55875797b43 (diff) | |
download | gcc-68990dbeadc5f4b90c0aa14387cb80d0f411aa43.zip gcc-68990dbeadc5f4b90c0aa14387cb80d0f411aa43.tar.gz gcc-68990dbeadc5f4b90c0aa14387cb80d0f411aa43.tar.bz2 |
gccrs: Allow const and async specifiers in functions
We need to account for const specifiers in async parsing as const
can be used in the syntax before the async keyword.
gcc/rust/ChangeLog:
* parse/rust-parse-impl.h (Parser::parse_vis_item): Allow parsing async
items in const.
(Parser::parse_async_item): Account for const offset during async
lookahead.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/checks/errors/rust-ast-validation.cc')
0 files changed, 0 insertions, 0 deletions