Skip to content

nr2.0: Adjust enum item visitors #3775

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 1 commit into from
May 7, 2025
Merged

Conversation

powerboat9
Copy link
Collaborator

This should make the visitation of EnumItem instances more straightforward, as well as add some missing calls to base class visitors

gcc/rust/ChangeLog:

	* ast/rust-ast-visitor.cc
	(DefaultASTVisitor::visit): Make call to EnumItem visitor from
	EnumItem derived class visitors non-virtual.
	* ast/rust-collect-lang-items.cc
	(CollectLangItems::visit): Handle visitation of classes derived
	from EnumItem.
	* ast/rust-collect-lang-items.h
	(CollectLangItems::visit): Likewise.
	* resolve/rust-toplevel-name-resolver-2.0.cc
	(TopLevel::visit): Call DefaultResolver::visit on EnumItem
	instances.

Signed-off-by: Owen Avery <[email protected]>
@powerboat9 powerboat9 requested review from P-E-P, CohenArthur and philberty and removed request for P-E-P and CohenArthur May 3, 2025 02:34
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 the AST label May 7, 2025
@philberty philberty added this pull request to the merge queue May 7, 2025
Merged via the queue into Rust-GCC:master with commit 11d46d4 May 7, 2025
12 checks passed
@powerboat9 powerboat9 deleted the fix-enum branch May 7, 2025 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants