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 D74411DFE0A; Mon, 31 Mar 2025 13:34:40 +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=1743428081; cv=none; b=ZlVIMWFrTBpTXxRHayrvEiES1cmP1z1F4RKAW2ZZeFN8F36Vn55Iud9fFZRE48iPIeeUSuAcCdIOHYYRDfERStd0skA2wSOwJTs6fzF408AojnHdGsmucuW8sUP+V4/x2ZfULHjg7r2KcJpDfpPZCZSRJWJLogsanjNTBK4blRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743428081; c=relaxed/simple; bh=xyF6jByBYOwL1OaHoxuZB6+If5bULRXAgVvZaJT2U0c=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=N73cWsEZuBExpULJ3fxnawll2thgPUaBfGB4ljl/uurYW/h4EXXmLL+4zuYnwb61TLh7sB/AqYrP4G0tRNmhECROskFv2YiqfgU7f7VkJLl0fHugOlHe/fWgcZzzMW2fSXXdDo8K1vCwd8Xkx874bcCBqh0j2CRZZ7ygdGpEojI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VasNy2em; 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="VasNy2em" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC926C4CEE3; Mon, 31 Mar 2025 13:34:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1743428080; bh=xyF6jByBYOwL1OaHoxuZB6+If5bULRXAgVvZaJT2U0c=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=VasNy2emhZWBkQOMZHEZilIDBS5l8ksvzGsU2ATYv/Q8S+DacHJGV6qQhyaJr3x3t 8QjAnMHNOc68n+8AJcRYaX+ZP08Gahstmuip+qt5vHd1DtS6AVzAytehhyxGluX6+D Rrly1ScTx/dXtS+C/10iM3YNBBdmj9F9xNEd5iN3hIaWW/XK8OdyL5ydoEcNQIlKx9 kHLxeSjyUqJbIKfCJjieALs2q5m8w9li/WZPF86ue5UjHsfDw08GrtV1KOEZnI6V7P 0WN5orpWnWlSTEAnjhUZBqQlXIoWqbbMikBb9QtR4eXzZd1+ES+O3d7C/x730KXxk2 mJvxeAA350olg== From: Andreas Hindborg To: "Miguel Ojeda" Cc: "Miguel Ojeda" , "Alex Gaynor" , "Boqun Feng" , "Gary Guo" , =?utf-8?Q?Bj=C3=B6rn?= Roy Baron , "Benno Lossin" , "Alice Ryhl" , "Masahiro Yamada" , "Nathan Chancellor" , "Nicolas Schier" , "Luis Chamberlain" , "Danilo Krummrich" , "Trevor Gross" , "Adam Bratschi-Kaye" , , , , "Petr Pavlu" , "Sami Tolvanen" , "Daniel Gomez" , "Simona Vetter" , "Greg KH" , "Fiona Behrens" , "Daniel Almeida" , Subject: Re: [PATCH v9 1/3] rust: str: add radix prefixed integer parsing functions In-Reply-To: (Miguel Ojeda's message of "Mon, 31 Mar 2025 12:33:37 +0200") References: <20250321-module-params-v3-v9-0-28b905f2e345@kernel.org> <20250321-module-params-v3-v9-1-28b905f2e345@kernel.org> User-Agent: mu4e 1.12.7; emacs 29.4 Date: Mon, 31 Mar 2025 15:34:27 +0200 Message-ID: <87semt493w.fsf@kernel.org> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Miguel Ojeda" writes: > On Fri, Mar 21, 2025 at 10:18=E2=80=AFAM Andreas Hindborg wrote: >> >> Add the trait `ParseInt` for parsing string representations of integers >> where the string representations are optionally prefixed by a radix >> specifier. Implement the trait for the primitive integer types. >> >> Tested-by: Daniel Almeida >> Reviewed-by: Daniel Almeida >> Signed-off-by: Andreas Hindborg > > I had applied the following comments in v8 when I originally took it > before discovering the UB -- since this patch may finally go through > modules (or not), Andreas asked me to put them here: > > [ Added integer type suffixes to `assert!`s for consistency with the > others. Changed links to docs.kernel.org. Applied Markdown and > intra-doc links where possible. Changed to `///` for `mod` docs. > Slightly reworded comment. Pluralized section name. Hid > `use`s. Removed `#[expect]` for the `rusttest` target. - Miguel ] > > Attached range diff of what I did. > > I hope that helps! Thanks Miguel! I will add the diff to the next spin. Best regards, Andreas Hindborg