gccrs: Handle `async` keyword for regular implementations
commit7a0c487d2c54b3cf3a83563add89a87220a109c2
authorKushal Pal <kushalpal109@gmail.com>
Sat, 6 Jan 2024 05:59:14 +0000 (6 11:29 +0530)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 30 Jan 2024 11:36:51 +0000 (30 12:36 +0100)
tree327c15489bb5c3a739c4562df5091fe6d7536969
parentf7c8a712be233f492b21bb1a4c4a3aa5f07b184b
gccrs: 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]