From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 8BEE338936E5; Wed, 8 Jun 2022 12:43:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8BEE338936E5 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 #1217 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: af031b081fcd26f9fcb3e4a561f5a3d98158e163 X-Git-Newrev: c936fd32559244c7c71137a743a22cb8af9edac8 Message-Id: <20220608124353.8BEE338936E5@sourceware.org> Date: Wed, 8 Jun 2022 12:43:53 +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:43:53 -0000 https://gcc.gnu.org/g:c936fd32559244c7c71137a743a22cb8af9edac8 commit c936fd32559244c7c71137a743a22cb8af9edac8 Merge: af031b081fc f5bceb67942 Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Date: Thu May 5 15:59:54 2022 +0000 Merge #1217 1217: Fix size used in unsized adjustments r=philberty a=philberty When we coerce from an array to a slice we take the full capacity of the array as the size to the FatPtr slice object but this was off by one. This The TYPE_MAX_VALUE is not the correct method of accessing this but instead it needs to take into account other values to get the correct HOST_WIDE_INT Co-authored-by: Philip Herron Diff: gcc/rust/backend/rust-compile-expr.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)