Open dtolnay opened 1 month ago
// src/lib.rs #![doc(hidden)] #[doc(inline)] pub use std; #[doc(inline)] pub use std::marker; #[doc(inline)] pub use std::marker::PhantomData;
Expected: empty documentation, as you would get with no items in the crate, or without #[doc(inline)] on the items.
Actual, as of rustdoc 1.70 through current nightly: the crate std is shown despite #[doc(hidden)]. The other 2 items are correctly not shown.
std
ran into this bug as well today where structs and traits aren't hidden anymore when the use statement is inlined :/.
Expected: empty documentation, as you would get with no items in the crate, or without #[doc(inline)] on the items.
Actual, as of rustdoc 1.70 through current nightly: the crate
std
is shown despite #[doc(hidden)]. The other 2 items are correctly not shown.