]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Fix pub unit type parsing
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 16 Oct 2023 09:28:34 +0000 (11:28 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:09:12 +0000 (19:09 +0100)
commitf209a01840a365365100c0ff4a31c0bab2ed2693
tree74f4ccd96ae44a84ebf1fae9a7d03ec6bd0ad5f8
parentf97a9841dc65ddaa18a08f37d0cd58537c3bfb94
gccrs: Fix pub unit type parsing

Public unit types where not parsed correctly due to visibility specifiers
within parenthesis. Fixes #2648.

gcc/rust/ChangeLog:

* parse/rust-parse-impl.h (Parser::parse_visibility): Relax constraints
over public visibility return condition in order to accept pub unit
types.

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