From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 1E9BD38928D1; Wed, 8 Jun 2022 12:41:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E9BD38928D1 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 #1194 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: 83e13db1fa12d3ff8751a293595cbf01fd1ac236 X-Git-Newrev: f8a137bd9391733a3d0d7b58f0f30af441e25a5a Message-Id: <20220608124116.1E9BD38928D1@sourceware.org> Date: Wed, 8 Jun 2022 12:41:16 +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:41:16 -0000 https://gcc.gnu.org/g:f8a137bd9391733a3d0d7b58f0f30af441e25a5a commit f8a137bd9391733a3d0d7b58f0f30af441e25a5a Merge: 83e13db1fa1 e09a5763203 Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Date: Fri Apr 29 13:09:18 2022 +0000 Merge #1194 1194: Add support for transmute r=philberty a=philberty This PR adds support for the transmute intrinsic by utilizing the convert expression code. It also fixes a bug with our coercion rules which miss two chances for inference variables to resolve slices and arrays. Fixes #1130 Addresses #658 Co-authored-by: Philip Herron Diff: gcc/rust/backend/rust-compile-intrinsic.cc | 115 ++++++++++++++++++++++- gcc/rust/typecheck/rust-tyty-coercion.h | 24 +++++ gcc/testsuite/rust/compile/issue-1130.rs | 47 +++++++++ gcc/testsuite/rust/compile/torture/transmute1.rs | 11 +++ 4 files changed, 195 insertions(+), 2 deletions(-)