mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
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 <benno.lossin@proton.me> Reviewed-by: Fiona Behrens <me@kloenk.dev> Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org> Tested-by: Andreas Hindborg <a.hindborg@kernel.org> Link: https://lore.kernel.org/r/20250308110339.2997091-2-benno.lossin@proton.me Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This commit is contained in:
committed by
Miguel Ojeda
parent
dc60dd0c68
commit
206dea39e5
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user