Skip to content

Commit bc1853e

Browse files
Document rustdoc issue workaround
1 parent 71d857a commit bc1853e

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
@@ -88,6 +88,10 @@ pub use indexmap::{
8888
pub use indexset::{FnvIndexSet, IndexSet, Iter as IndexSetIter};
8989
pub use linear_map::LinearMap;
9090
pub use string::String;
91+
92+
// Workaround https://github.com/rust-lang/rust/issues/119015. This is required so that the methods on `VecView` and `Vec` are properly documented.
93+
// cfg(doc) prevents `VecInner` being part of the public API.
94+
// doc(hidden) prevents the `pub use vec::VecInner` from being visible in the documentation.
9195
#[cfg(doc)]
9296
#[doc(hidden)]
9397
pub use vec::VecInner as _;

0 commit comments

Comments
 (0)