Re: [PATCH 1/2] rust: allow `unreachable_pub` for doctests
From: Miguel Ojeda
Date: Mon Nov 17 2025 - 02:48:11 EST
On Mon, Nov 10, 2025 at 2:38 PM Gary Guo <gary@xxxxxxxxxxx> wrote:
>
> We shouldn't
> try to enable all clippy lints on doc tests, especially that clippy
> doesn't run today on rustdocs at all.
You mean on Cargo / userspace projects, right?
Yeah, I think they want to change that -- it is a part of the kernel
build that works better than the usual Rust project, in the sense that
Clippy is quite important to have in order to enforce things like `//
SAFETY: ...` comments.
Cheers,
Miguel