Skip to content

Finish derive(PartialEq) #3742

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

Merged
merged 3 commits into from
May 2, 2025

Conversation

CohenArthur
Copy link
Member

Fixes #2989

Needs to be rebased on #3741 once it is merged

@CohenArthur CohenArthur force-pushed the finish-derive-partial-eq branch from 8c8d014 to 0111537 Compare April 24, 2025 16:42
CohenArthur and others added 3 commits May 2, 2025 16:21
gcc/rust/ChangeLog:

	* ast/rust-ast-builder.cc (Builder::struct_pattern_ident_pattern): New.
	* ast/rust-ast-builder.h: New declaration.
gcc/rust/ChangeLog:

	* expand/rust-derive-partial-eq.cc (DerivePartialEq::match_enum_tuple): Remove debug call.
	(DerivePartialEq::match_enum_struct): Add proper implementation.
	(DerivePartialEq::visit_enum): Call it.

gcc/testsuite/ChangeLog:

	* rust/execute/torture/derive-partialeq2.rs: New test.
gcc/testsuite/ChangeLog:

	* rust/execute/torture/derive-partialeq2.rs: Add missing terminating nul char.

Co-authored-by: Pierre-Emmanuel Patry <[email protected]>
@CohenArthur CohenArthur force-pushed the finish-derive-partial-eq branch from 0111537 to cdae1ae Compare May 2, 2025 14:22
@CohenArthur CohenArthur enabled auto-merge May 2, 2025 14:28
@CohenArthur CohenArthur added this pull request to the merge queue May 2, 2025
Merged via the queue into Rust-GCC:master with commit 5599bf4 May 2, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PartialEq
2 participants