Skip to content

Commit ad2a103

Browse files
committed
rust: prelude: prevent doc inline of external imports
This is part of the effort to minimize the differences of the `rust` branch with respect to mainline in order to eventually drop it. Apply commit dec1df5 ("rust: prelude: prevent doc inline of external imports") from mainline. Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 1a12514 commit ad2a103

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

rust/kernel/prelude.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,22 @@
1111
//! use kernel::prelude::*;
1212
//! ```
1313
14+
#[doc(no_inline)]
1415
pub use core::pin::Pin;
1516

17+
#[doc(no_inline)]
1618
pub use alloc::{boxed::Box, string::String, vec::Vec};
1719

20+
#[doc(no_inline)]
1821
pub use macros::{module, vtable};
1922

2023
pub use super::build_assert;
2124

25+
// `super::std_vendor` is hidden, which makes the macro inline for some reason.
26+
#[doc(no_inline)]
27+
pub use super::dbg;
2228
pub use super::{
23-
dbg, dev_alert, dev_crit, dev_dbg, dev_emerg, dev_err, dev_info, dev_notice, dev_warn, fmt,
29+
dev_alert, dev_crit, dev_dbg, dev_emerg, dev_err, dev_info, dev_notice, dev_warn, fmt,
2430
pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_info, pr_notice, pr_warn,
2531
};
2632

0 commit comments

Comments
 (0)