Re: [PATCH 01/22] rust: init: disable doctests
From: Andreas Hindborg
Date: Wed Mar 05 2025 - 04:53:28 EST
"Benno Lossin" <benno.lossin@xxxxxxxxx> writes:
> This is the first commit in a series that splits off the pin-init crate
> from the kernel crate.
I recently learned that using imperative mode in the commit message is
preferred [1]. You might want to consider that for next spin.
>
> The build system cannot handle doctests in the kernel crate in files
> outside of `rust/kernel/`. Since subsequent commits will move files out
> of that directory, but will still compile them as part of the kernel
> crate, ignore all doctests in the to-be-moved files.
>
> The tests will be re-enabled later when the separation into its own
> crate has been completed, since then the doctests of that new crate will
> be handled as normal host doctests.
>
> Signed-off-by: Benno Lossin <benno.lossin@xxxxxxxxx>
Reviewed-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
Best regards,
Andreas Hindborg
[1] https://docs.kernel.org/process/submitting-patches.html