From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 04B75381ECB0; Wed, 8 Jun 2022 12:40:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 04B75381ECB0 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] ast: resolve: Move ResolveItem into its own source file X-Act-Checkin: gcc X-Git-Author: Arthur Cohen X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: 1ada076b9324982fd6f49aea6456e99613e394a8 X-Git-Newrev: ad326924829d618e1f2ec94a2152bfad2a0ad0c5 Message-Id: <20220608124005.04B75381ECB0@sourceware.org> Date: Wed, 8 Jun 2022 12:40:05 +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:05 -0000 https://gcc.gnu.org/g:ad326924829d618e1f2ec94a2152bfad2a0ad0c5 commit ad326924829d618e1f2ec94a2152bfad2a0ad0c5 Author: Arthur Cohen Date: Mon Apr 25 21:41:26 2022 +0200 ast: resolve: Move ResolveItem into its own source file Diff: --- gcc/rust/ast/rust-ast.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index f2b14ab337f..666fd7cb00f 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -404,6 +404,11 @@ public: = {AST::SimplePathSegment (std::move (str), locus)}; return SimplePath (std::move (single_segments)); } + + const std::vector &get_segments () const + { + return segments; + } }; // path-to-string inverse comparison operator