From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A795B26981C; Wed, 23 Apr 2025 10:10:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745403056; cv=none; b=IIHEZcvtnwW/Nsjoy4DauPUuwiCr6EP9+UyAjsB4q6EYBmAaU/G6OtzSn5h/BKnDePDE9TvHnI9BALT8+sRcl78Mbh404AbOVrMmsWOqpApuoVzJmcUlunah766otVPYx/3YxQXIumFc+QrYHhlBU5L3z3WiMDEyXzQOKp2ymqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745403056; c=relaxed/simple; bh=+yYCShvmraSEMTdaROMxn8suowRlbwu6H8r89f2vRUU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ndy5C9RgeJFLgNqC0T5YwTaOwSOi7Tb+f1F2O5aRYmBJdEOYeuZdRIMLuChqbY4QqDN9PnqE/BDlzbdlTP6Q+eZQ/NOSVaMwrKvfPb2KanIm0k6dGgxphuhPItK8m5SfZSUL3wIfY7rlSzJRjqldlSQCkAvth00vZWqw6A5Oq5k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ww/GE/7F; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ww/GE/7F" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 836E4C4CEE2; Wed, 23 Apr 2025 10:10:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745403056; bh=+yYCShvmraSEMTdaROMxn8suowRlbwu6H8r89f2vRUU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ww/GE/7Fc1P07FhfgcBz9fLgUa0HlVdt8nIFCSiE36jSc/s5yxSB8+Ew2KonxmOsx iTLhqaZce4bLzHw/Vknnt9+cgNMS+SsJjg2ajB91oIpOJtyqw+FWDWja+aQZ3djwdD Y60WaEXRfj6RfhWdKv6rzTR65fESWJYSd4r4thJ0kyh5gng7oAQunz8nZiKlM9BSfV DhPQabXvrQjiPOMghSh3WSN8NaSH1AGoChkOj3JrxD9iD03ooN0ka1l7JKmFoniAX0 3MaGJopSrzhHFaFrXZQprDUkzshYWSkDopBLUhv0N5Dju017/BixOsoqzvStHeT6Mw O2IqfGMW7YI5w== Date: Wed, 23 Apr 2025 12:10:50 +0200 From: Danilo Krummrich To: Tamir Duberstein Cc: Andrew Ballance , Alice Ryhl , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Trevor Gross , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/4] rust: alloc: split `Vec::set_len` into `Vec::{inc,dec}_len` Message-ID: References: <20250416-vec-set-len-v4-0-112b222604cd@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250416-vec-set-len-v4-0-112b222604cd@gmail.com> On Wed, Apr 16, 2025 at 01:15:39PM -0400, Tamir Duberstein wrote: > This series is the product of a discussion[0] on the safety requirements > of `set_len`. With the following changes, applied to alloc-next, thanks! * Temporarily add #[expect(unused)] to dec_len() to avoid a compiler warning. - Danilo