Skip to content

Conversation

powerboat9
Copy link
Collaborator

This should fix #3444

gcc/rust/ChangeLog:

	* expand/rust-expand-visitor.cc
	(ExpandVisitor::visit): Override DefaultASTVisitor in order to
	expand a module's items, rather than directly visit them.
	* expand/rust-expand-visitor.h
	(ExpandVisitor::visit): Add override.

gcc/testsuite/ChangeLog:

	* rust/compile/macros/mbe/macro-expand-module.rs: New test.

Signed-off-by: Owen Avery <[email protected]>
Copy link
Member

@philberty philberty left a comment

Choose a reason for hiding this comment

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

LGTM

@philberty philberty added this pull request to the merge queue Feb 23, 2025
Merged via the queue into Rust-GCC:master with commit c3a707a Feb 23, 2025
12 checks passed
@powerboat9 powerboat9 deleted the fix-mod branch February 23, 2025 20:25
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.

Macro expansions replace parent modules
2 participants