aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve.cc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-05-17 10:11:04 +0000
committerGitHub <noreply@github.com>2022-05-17 10:11:04 +0000
commit8cad07cfd2244ad9a40027a4306b81b4553a4797 (patch)
treece267318444308626518420adf10b563c2bad96c /gcc/rust/resolve/rust-ast-resolve.cc
parente4213b9568ae8cb8a4e31326e0e78c79db0a99cc (diff)
parent48fc2df91b07709f41ab80499a661ac9f12f3be3 (diff)
downloadgcc-8cad07cfd2244ad9a40027a4306b81b4553a4797.zip
gcc-8cad07cfd2244ad9a40027a4306b81b4553a4797.tar.gz
gcc-8cad07cfd2244ad9a40027a4306b81b4553a4797.tar.bz2
Merge #1246
1246: Report simple privacy violations r=CohenArthur a=CohenArthur This adds a base visitor for reporting basic privacy violations. For now, only function calls are implemented. Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve.cc')
-rw-r--r--gcc/rust/resolve/rust-ast-resolve.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/resolve/rust-ast-resolve.cc b/gcc/rust/resolve/rust-ast-resolve.cc
index 6da5609..945ff28 100644
--- a/gcc/rust/resolve/rust-ast-resolve.cc
+++ b/gcc/rust/resolve/rust-ast-resolve.cc
@@ -86,7 +86,7 @@ NameResolution::go (AST::Crate &crate)
// a Self type Foo which is defined after the impl block for example.
for (auto it = crate.items.begin (); it != crate.items.end (); it++)
ResolveTopLevel::go (it->get (), CanonicalPath::create_empty (),
- crate_prefix);
+ crate_prefix, scope_node_id);
// FIXME remove this
if (saw_errors ())