From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id D0B5C3985479; Wed, 8 Jun 2022 11:47:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D0B5C3985479 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 #791 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: 5f0df4812c37fc428b5508e019e9fb7f8a7b77b1 X-Git-Newrev: 674221a3b27f5455fddc793ec9aaf30a4d858ecb Message-Id: <20220608114730.D0B5C3985479@sourceware.org> Date: Wed, 8 Jun 2022 11:47:30 +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 11:47:30 -0000 https://gcc.gnu.org/g:674221a3b27f5455fddc793ec9aaf30a4d858ecb commit 674221a3b27f5455fddc793ec9aaf30a4d858ecb Merge: 5f0df4812c3 c8ee62ed453 Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Date: Wed Nov 3 15:54:51 2021 +0000 Merge #791 791: Replace TyTy::TupleType::iterate_fields with a new function get_fields r=philberty a=cls This PR replaces TyTy::TupleType::iterate_fields with a new function get_fields. In #735, `@philberty` mentions two possible implementations of get_fields, one that returns `std::vector&` and one that returns a new `std::vector`. I've included two commits, the first doing the former and second going on to do the latter. I'm happy with one or both being merged. This is my first PR, so please let me know if I've missed anything! Thanks. Fixes #735 Co-authored-by: Connor Lane Smith Diff: gcc/rust/typecheck/rust-tyty.cc | 10 +++++----- gcc/rust/typecheck/rust-tyty.h | 9 +-------- 2 files changed, 6 insertions(+), 13 deletions(-)