Skip to content

Commit

Permalink
Handle async keyword for regular implementations
Browse files Browse the repository at this point in the history
Fixes #2788

gcc/rust/ChangeLog:

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

Signed-off-by: Kushal Pal <[email protected]>
  • Loading branch information
braw-lee committed Jan 6, 2024
1 parent b864866 commit bced4e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gcc/rust/parse/rust-parse-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -5599,6 +5599,7 @@ Parser<ManagedTokenSource>::parse_inherent_impl_item ()
return nullptr;
}
}
case ASYNC:
case EXTERN_KW:
case UNSAFE:
case FN_KW:
Expand Down

0 comments on commit bced4e6

Please sign in to comment.