Skip to content

Conversation

@Pasta-coder
Copy link
Contributor

This patch refactors and in
to use a common template helper , reducing
code duplication as requested by the FIXME. It also adds missing documentation for .

gcc/rust/ChangeLog:

* expand/rust-expand-visitor.h (expand_closure_params): Add documentation.
(expand_fields): New private template helper.
* expand/rust-expand-visitor.cc (expand_struct_fields): Use helper.
(expand_tuple_fields): Use helper.

This patch refactors  and  in
 to use a common template helper , reducing
code duplication as requested by the FIXME. It also adds missing documentation
for .

gcc/rust/ChangeLog:

	* expand/rust-expand-visitor.h (expand_closure_params): Add documentation.
	(expand_fields): New private template helper.
	* expand/rust-expand-visitor.cc (expand_struct_fields): Use helper.
	(expand_tuple_fields): Use helper.

Signed-off-by: Jayant Chauhan <[email protected]>
Copy link
Member

@CohenArthur CohenArthur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@CohenArthur CohenArthur added this pull request to the merge queue Jan 18, 2026
Merged via the queue into Rust-GCC:master with commit c57cf83 Jan 18, 2026
12 checks passed
@Pasta-coder Pasta-coder deleted the refactor/expand-visitor-cleanup branch January 18, 2026 14:37
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.

2 participants