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

Commits on Nov 4, 2024

  1. Use name resolver 2.0 for module descendance checks

    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]>
    powerboat9 committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    197f077 View commit details
    Browse the repository at this point in the history