Re: [PATCH 1/2] rust: allow `unreachable_pub` for doctests

From: David Gow

Date: Thu Nov 13 2025 - 22:14:27 EST


On Mon, 10 Nov 2025 at 19:35, Miguel Ojeda <ojeda@xxxxxxxxxx> wrote:
>
> Examples (i.e. doctests) may want to show public items such as structs,
> thus the `unreachable_pub` warning is not very helpful.
>
> Thus allow it for all doctests.
>
> In addition, remove it from the existing `expect`s we have in a couple
> doctests.
>
> Suggested-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Link: https://lore.kernel.org/rust-for-linux/aRG9VjsaCjsvAwUn@xxxxxxxxxx/
> Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
> ---

Reviewed-by: David Gow <davidgow@xxxxxxxxxx>

Cheers,
-- David

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature