gccrs: Fix path expr segment parsing with generic path
commit061c5d2e24831e520c2deaa383c7ba2041e89146
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 10 Oct 2023 08:04:57 +0000 (10 10:04 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:09:14 +0000 (16 19:09 +0100)
tree51f842b210b96a234ca9414f9a956dbe3990da96
parent292aec084c9986ea4274cd23f73248879a713911
gccrs: Fix path expr segment parsing with generic path

When a token was identified as bit left shift it slipped through the
parser and resulted in an error.

gcc/rust/ChangeLog:

* parse/rust-parse-impl.h (Parser::parse_path_expr_segment): Accept
left shift tokens in order to let generic parsing function split the
token.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/parse/rust-parse-impl.h