]> gcc.gnu.org Git - gcc.git/commit
Allow const and async specifiers in functions
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 22 Nov 2023 09:35:44 +0000 (10:35 +0100)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Fri, 1 Dec 2023 09:14:09 +0000 (09:14 +0000)
commit804830a0258aadcaf26683abb86019ed96a33c14
tree9087766649603dd43cdd14af7457e6443e4ba150
parent6b9657a645057800d19b1ecf7447f693d54c1e13
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>
gcc/rust/parse/rust-parse-impl.h
This page took 0.060709 seconds and 5 git commands to generate.