diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2024-10-26 20:52:31 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-21 12:32:55 +0100 |
commit | 2a44562d0b65d9ec13d00f7eba87fe77cb1c6af3 (patch) | |
tree | c983fa9d51b4f2bafed7085a8b82d8d43671638b /gcc/rust/hir/tree/rust-hir-bound-abstract.h | |
parent | b1e6a3f76e10d7d9ee3574b7abd9d0281ea2d22d (diff) | |
download | gcc-2a44562d0b65d9ec13d00f7eba87fe77cb1c6af3.zip gcc-2a44562d0b65d9ec13d00f7eba87fe77cb1c6af3.tar.gz gcc-2a44562d0b65d9ec13d00f7eba87fe77cb1c6af3.tar.bz2 |
gccrs: 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 <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir-bound-abstract.h')
0 files changed, 0 insertions, 0 deletions