Skip to content

Commit 8709bc4

Browse files
Document rustdoc issue workaround
1 parent fe3dd4d commit 8709bc4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ pub use indexmap::{
8989
pub use indexset::{FnvIndexSet, IndexSet, Iter as IndexSetIter};
9090
pub use linear_map::LinearMap;
9191
pub use string::String;
92+
93+
// Workaround https://github.com/rust-lang/rust/issues/119015. This is required so that the methods on `VecView` and `Vec` are properly documented.
94+
// cfg(doc) prevents `VecInner` being part of the public API.
95+
// doc(hidden) prevents the `pub use vec::VecInner` from being visible in the documentation.
9296
#[cfg(doc)]
9397
#[doc(hidden)]
9498
pub use vec::VecInner as _;

0 commit comments

Comments
 (0)