From b2e1131b480166ae385e18ca94c158559b3af241 Mon Sep 17 00:00:00 2001 From: Kushal Pal Date: Sat, 16 Dec 2023 00:41:09 +0530 Subject: [PATCH] Handle `async` qualifier inside trait Fixes #2778 gcc/rust/ChangeLog: * parse/rust-parse-impl.h (Parser::parse_trait_impl_item): Handled `async` items Signed-off-by: Kushal Pal --- gcc/rust/parse/rust-parse-impl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index 12c34d98956f..46f00bc1881f 100644 --- a/gcc/rust/parse/rust-parse-impl.h +++ b/gcc/rust/parse/rust-parse-impl.h @@ -5784,6 +5784,8 @@ Parser::parse_trait_impl_item () // function or method return parse_trait_impl_function_or_method (visibility, std::move (outer_attrs)); + case ASYNC: + return parse_async_item (visibility, std::move (outer_attrs)); case CONST: // lookahead to resolve production - could be function/method or const // item