From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 0107E3AA8887; Wed, 8 Jun 2022 11:56:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0107E3AA8887 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 #831 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: 310968874db1902084012cf767ad0b6e93f028c2 X-Git-Newrev: de9bb867970b755eca6ff612daae801f120ee928 Message-Id: <20220608115614.0107E3AA8887@sourceware.org> Date: Wed, 8 Jun 2022 11:56:14 +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:56:14 -0000 https://gcc.gnu.org/g:de9bb867970b755eca6ff612daae801f120ee928 commit de9bb867970b755eca6ff612daae801f120ee928 Merge: 310968874db 24dd9a6aef8 Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Date: Wed Dec 15 22:32:42 2021 +0000 Merge #831 831: Fix out-of-bounds in typechecking of ADTTypes r=philberty a=philberty In the case of an enum where there are more variants than the number of fields within any variant we end up hitting an out of bounds exception as we are using the wrong iterator on the fields during type checking. This also means we were missing all possible fields in the case during type checking. Co-authored-by: Philip Herron Diff: gcc/rust/typecheck/rust-tyty-cmp.h | 4 ++-- gcc/rust/typecheck/rust-tyty-coercion.h | 4 ++-- gcc/rust/typecheck/rust-tyty-rules.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)