]> gcc.gnu.org Git - gcc.git/commit
Handle `async` keyword for regular implementations
authorKushal Pal <kushalpal109@gmail.com>
Sat, 6 Jan 2024 05:59:14 +0000 (11:29 +0530)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Wed, 17 Jan 2024 13:24:04 +0000 (13:24 +0000)
commit0cd26bd7004cfa9c2262ff8020222a053b93f37f
treec653a886ff5ade8bf19713fbf62c40d44ceb38a6
parent6d85a80bcf3414e017d058db3e0ea96827dfdbb3
Handle `async` keyword for regular implementations

Fixes #2788

gcc/rust/ChangeLog:

* parse/rust-parse-impl.h (Parser::parse_inherent_impl_item):
Added switch-case for ASYNC token.

gcc/testsuite/ChangeLog:

* rust/compile/issue-2788.rs: New test.

Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
gcc/rust/parse/rust-parse-impl.h
gcc/testsuite/rust/compile/issue-2788.rs [new file with mode: 0644]
This page took 0.060783 seconds and 5 git commands to generate.