From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 9DF9838928D1; Wed, 8 Jun 2022 12:40:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9DF9838928D1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] Merge #1172 X-Act-Checkin: gcc X-Git-Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com> X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: 1ada076b9324982fd6f49aea6456e99613e394a8 X-Git-Newrev: 9cf744cbd762442ab33b3f92067829883d7d2d73 Message-Id: <20220608124045.9DF9838928D1@sourceware.org> Date: Wed, 8 Jun 2022 12:40:45 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2022 12:40:45 -0000 https://gcc.gnu.org/g:9cf744cbd762442ab33b3f92067829883d7d2d73 commit 9cf744cbd762442ab33b3f92067829883d7d2d73 Merge: 1ada076b932 1c56e969a64 Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Date: Thu Apr 28 13:46:02 2022 +0000 Merge #1172 1172: Resolve visibility paths r=CohenArthur a=CohenArthur This tackles the remaining issues in #1158. ~~It also contains the commit from #1168 so you should wait for bors to merge that before reviewing it :D~~ done The paths get resolved but their `NodeId`s are not used in the privacy visibility resolver yet. Closes #1158 Co-authored-by: Arthur Cohen Diff: gcc/rust/Make-lang.in | 1 + gcc/rust/ast/rust-ast.h | 6 + gcc/rust/ast/rust-item.h | 1 + gcc/rust/privacy/rust-visibility-resolver.cc | 11 + gcc/rust/resolve/rust-ast-resolve-base.cc | 654 +++++++++++++++++++++++++ gcc/rust/resolve/rust-ast-resolve-base.h | 335 ++++++------- gcc/rust/resolve/rust-ast-resolve-item.cc | 41 ++ gcc/rust/resolve/rust-ast-resolve-path.cc | 72 +++ gcc/rust/resolve/rust-ast-resolve-path.h | 17 + gcc/testsuite/rust/compile/pub_restricted_1.rs | 14 + 10 files changed, 987 insertions(+), 165 deletions(-)