Re: [PATCH] rust: allow `clippy::disallowed_names` for doctests

From: Miguel Ojeda
Date: Mon Nov 17 2025 - 16:27:30 EST


On Mon, Nov 17, 2025 at 10:13 PM John Hubbard <jhubbard@xxxxxxxxxx> wrote:
>
> The current set of disallowed names is inherited from clippy's defaults [1],
> which are "foo", "baz", and "quux". This may be extended via .clipy.toml,
> which so far has no entries for disallowed names.

As for this paragraph, I am confused why we would want to add it.

This isn't about extending the disallowed names or about how the lint
works in general. It is just about disabling the lint entirely for
doctests.

So adding that paragraph would make it the commit more confusing.

Cheers,
Miguel