diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-04-26 10:54:51 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-04-28 15:15:05 +0200 |
commit | d462ec452a1e6558ddaf071a10d2fb3729f5af73 (patch) | |
tree | 18a53d627dd0826903d4bff53ba62f673b9cd888 /gcc | |
parent | ad326924829d618e1f2ec94a2152bfad2a0ad0c5 (diff) | |
download | gcc-d462ec452a1e6558ddaf071a10d2fb3729f5af73.zip gcc-d462ec452a1e6558ddaf071a10d2fb3729f5af73.tar.gz gcc-d462ec452a1e6558ddaf071a10d2fb3729f5af73.tar.bz2 |
privacy: visibility: Do not use SimplePaths this late
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/privacy/rust-visibility-resolver.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/rust/privacy/rust-visibility-resolver.cc b/gcc/rust/privacy/rust-visibility-resolver.cc index 8f5aeba..3ab6085 100644 --- a/gcc/rust/privacy/rust-visibility-resolver.cc +++ b/gcc/rust/privacy/rust-visibility-resolver.cc @@ -45,6 +45,17 @@ VisibilityResolver::go (HIR::Crate &crate) } } +// FIXME: At this point in the pipeline, we should not be dealing with +// `AST::SimplePath`s anymore! We need to be dealing with their "resolved +// counterpart", so probably a NodeId/HirId/DefId. + +// static bool +// resolve_module_path (std::vector<HIR::Module> &module_stack, +// const AST::SimplePath &restriction, DefId &id) +// { +// return false; +// } + bool VisibilityResolver::resolve_visibility (const HIR::Visibility &visibility, ModuleVisibility &to_resolve) |