From 401cb6bb539e95733290d1b0487f682f48b3f9cd Mon Sep 17 00:00:00 2001 From: QuietMisdreavus Date: Thu, 8 Nov 2018 19:06:16 -0600 Subject: don't inline `pub use some_crate` unless directly asked to --- src/doc/rustdoc/src/the-doc-attribute.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/doc/rustdoc') diff --git a/src/doc/rustdoc/src/the-doc-attribute.md b/src/doc/rustdoc/src/the-doc-attribute.md index 296422744fa..61e5b3d0133 100644 --- a/src/doc/rustdoc/src/the-doc-attribute.md +++ b/src/doc/rustdoc/src/the-doc-attribute.md @@ -186,6 +186,9 @@ mod bar { Now we'll have a `Re-exports` line, and `Bar` will not link to anywhere. +One special case: In Rust 2018 and later, if you `pub use` one of your dependencies, `rustdoc` will +not eagerly inline it as a module unless you add `#[doc(inline)}`. + ## `#[doc(hidden)]` Any item annotated with `#[doc(hidden)]` will not appear in the documentation, unless -- cgit 1.4.1-3-g733a5