[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <DEB39JY2VH7G.2D1WAPTNN94MQ@kernel.org>
Date: Mon, 17 Nov 2025 16:52:19 +0100
From: "Benno Lossin" <lossin@...nel.org>
To: "Miguel Ojeda" <ojeda@...nel.org>, "Alex Gaynor"
<alex.gaynor@...il.com>, "Brendan Higgins" <brendan.higgins@...ux.dev>,
"David Gow" <davidgow@...gle.com>
Cc: <rust-for-linux@...r.kernel.org>, "Boqun Feng" <boqun.feng@...il.com>,
"Gary Guo" <gary@...yguo.net>, Björn Roy Baron
<bjorn3_gh@...tonmail.com>, "Andreas Hindborg" <a.hindborg@...nel.org>,
"Alice Ryhl" <aliceryhl@...gle.com>, "Trevor Gross" <tmgross@...ch.edu>,
"Danilo Krummrich" <dakr@...nel.org>, "Rae Moar" <raemoar63@...il.com>,
<linux-kselftest@...r.kernel.org>, <kunit-dev@...glegroups.com>,
<linux-kernel@...r.kernel.org>, <patches@...ts.linux.dev>
Subject: Re: [PATCH] rust: allow `clippy::disallowed_names` for doctests
On Mon Nov 17, 2025 at 9:07 AM CET, Miguel Ojeda wrote:
> Examples (i.e. doctests) may want to use names such as `foo`, thus the
> `clippy::disallowed_names` lint gets in the way.
>
> Thus allow it for all doctests.
>
> In addition, remove it from the existing `expect`s we have in a few
> doctests.
>
> This does not mean that we should stop trying to find good names for
> our examples, though.
>
> Suggested-by: Alice Ryhl <aliceryhl@...gle.com>
> Link: https://lore.kernel.org/rust-for-linux/aRHSLChi5HYXW4-9@google.com/
> Signed-off-by: Miguel Ojeda <ojeda@...nel.org>
Acked-by: Benno Lossin <lossin@...nel.org>
Cheers,
Benno
> ---
> rust/kernel/init.rs | 3 +--
> rust/kernel/types.rs | 1 -
> scripts/rustdoc_test_gen.rs | 2 +-
> 3 files changed, 2 insertions(+), 4 deletions(-)
Powered by blists - more mailing lists