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

Use name resolver 2.0 for module descendance checks #3224

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

powerboat9
Copy link
Contributor

No description provided.

gcc/rust/resolve/rust-forever-stack.h Outdated Show resolved Hide resolved
@powerboat9 powerboat9 changed the title Use name resolver 2.0 for module decendence checks Use name resolver 2.0 for module descendance checks Oct 28, 2024
gcc/rust/ChangeLog:

	* checks/errors/privacy/rust-privacy-reporter.cc:
	Include rust-immutable-name-resolution-context.h.
	(is_child_module): Use ForeverStack::is_module_descendant if name
	resolution 2.0 is enabled.
	* resolve/rust-forever-stack.h
	(ForeverStack::is_module_descendant): Add.
	(ForeverStack::dfs_node): Add.
	* resolve/rust-forever-stack.hxx
	(ForeverStack::dfs_rib): Use ForeverStack::dfs_node.
	(ForeverStack::dfs_node): Add.
	(ForeverStack::is_module_descendant): Add.

Signed-off-by: Owen Avery <[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.

thanks!

@CohenArthur CohenArthur added this pull request to the merge queue Nov 5, 2024
Merged via the queue into Rust-GCC:master with commit 5ceba7f Nov 5, 2024
12 checks passed
@powerboat9 powerboat9 deleted the fix-mod-dec branch November 5, 2024 16:34
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