diff options
| author | Benno Lossin <[email protected]> | 2025-03-08 11:03:51 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-03-16 20:59:18 +0000 |
| commit | 206dea39e55968d8f3ad56771507361eb799dfc7 (patch) | |
| tree | 8abf4948b29957226c735c9f016d8ee8fcd73e00 /rust/macros/lib.rs | |
| parent | rust: error: extend the Result documentation (diff) | |
| download | kernel-206dea39e55968d8f3ad56771507361eb799dfc7.tar.gz kernel-206dea39e55968d8f3ad56771507361eb799dfc7.zip | |
rust: init: disable doctests
The build system cannot handle doctests in the kernel crate in files
outside of `rust/kernel/`. Subsequent commits will move files out of
that directory, but will still compile them as part of the kernel crate.
Thus ignore all doctests in the to-be-moved files.
Leave tests disabled until they are separated into their own crate and
they stop causing breakage.
Signed-off-by: Benno Lossin <[email protected]>
Reviewed-by: Fiona Behrens <[email protected]>
Reviewed-by: Andreas Hindborg <[email protected]>
Tested-by: Andreas Hindborg <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/macros/lib.rs')
| -rw-r--r-- | rust/macros/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/macros/lib.rs b/rust/macros/lib.rs index 8c7b786377ee..0bd97c3a4e30 100644 --- a/rust/macros/lib.rs +++ b/rust/macros/lib.rs @@ -272,7 +272,7 @@ pub fn concat_idents(ts: TokenStream) -> TokenStream { /// /// # Examples /// -/// ``` +/// ```ignore /// # #![feature(lint_reasons)] /// # use kernel::prelude::*; /// # use std::{sync::Mutex, process::Command}; @@ -285,7 +285,7 @@ pub fn concat_idents(ts: TokenStream) -> TokenStream { /// } /// ``` /// -/// ``` +/// ```ignore /// # #![feature(lint_reasons)] /// # use kernel::prelude::*; /// # use std::{sync::Mutex, process::Command}; @@ -326,7 +326,7 @@ pub fn pin_data(inner: TokenStream, item: TokenStream) -> TokenStream { /// /// # Examples /// -/// ``` +/// ```ignore /// # #![feature(lint_reasons)] /// # use kernel::prelude::*; /// # use macros::{pin_data, pinned_drop}; @@ -502,7 +502,7 @@ pub fn paste(input: TokenStream) -> TokenStream { /// /// # Examples /// -/// ``` +/// ```ignore /// use kernel::macros::Zeroable; /// /// #[derive(Zeroable)] |
