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

Emit error on optional supertraits #3055

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

P-E-P
Copy link
Member

@P-E-P P-E-P commented Jun 17, 2024

Fixes formatting issues from #2745

Addresses #2725

gcc/rust/ChangeLog:

	* typecheck/rust-hir-type-check-item.cc (TypeCheckItem::visit): Check for ?Trait in visitor

gcc/testsuite/ChangeLog:

	* rust/compile/issue-2725.rs: New test.

Signed-off-by: Dave Evans <[email protected]>
@P-E-P P-E-P changed the title Fix optional trait parsing Emit error on optional supertraits Jun 17, 2024
@P-E-P P-E-P requested a review from CohenArthur June 17, 2024 09:46
@P-E-P P-E-P added this to the GCC 15.1 milestone Jun 17, 2024
@P-E-P P-E-P self-assigned this Jun 17, 2024
@P-E-P P-E-P marked this pull request as ready for review June 17, 2024 10:28
@P-E-P P-E-P added this pull request to the merge queue Jun 17, 2024
Merged via the queue into Rust-GCC:master with commit 89c056b Jun 17, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants