Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pub unit type parsing #2686

Merged
merged 2 commits into from
Oct 16, 2023
Merged

Conversation

P-E-P
Copy link
Member

@P-E-P P-E-P commented Oct 16, 2023

Unit types could not be parsed correctly when made public.

Fixes #2648

P-E-P added 2 commits October 16, 2023 11:30
Public unit types where not parsed correctly due to visibility specifiers
within parenthesis. Fixes Rust-GCC#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 <[email protected]>
Add a new test to highlight fix for Rust-GCC#2648.

gcc/testsuite/ChangeLog:

	* rust/compile/parse_pub_unit_type.rs: New test.

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
@P-E-P P-E-P added this to the GCC 14.1 release milestone Oct 16, 2023
@P-E-P P-E-P requested a review from CohenArthur October 16, 2023 09:43
@P-E-P P-E-P self-assigned this Oct 16, 2023
@P-E-P P-E-P marked this pull request as ready for review October 16, 2023 09:43
@philberty philberty added this pull request to the merge queue Oct 16, 2023
Merged via the queue into Rust-GCC:master with commit 9d0a073 Oct 16, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Unit type in tuple struct not parsed correctly
2 participants