Skip to content

Commit

Permalink
[docs] Mark KnownLayout derive #[doc(hidden)]
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlf committed Nov 2, 2023
1 parent 4433ad3 commit 300607d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,15 @@ safety_comment! {
unsafe_impl_known_layout!(T: ?Sized + KnownLayout => #[repr(T)] ManuallyDrop<T>);
}

// Explicitly `pub use` here (overriding the preceding `pub use zerocopy_derive::*`)
// so that we can mark it `#[doc(hidden)]`.
//
// TODO(#29): Remove this or add a doc comment.
#[cfg(any(feature = "derive", test))]
#[cfg_attr(doc_cfg, doc(cfg(feature = "derive")))]
#[doc(hidden)]
pub use zerocopy_derive::KnownLayout;

/// Analyzes whether a type is [`FromZeroes`].
///
/// This derive analyzes, at compile time, whether the annotated type satisfies
Expand Down

0 comments on commit 300607d

Please sign in to comment.