Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Mark KnownLayout derive #[doc(hidden)] #588

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented Nov 2, 2023

No description provided.

@joshlf joshlf requested a review from jswrenn November 2, 2023 13:16
@joshlf joshlf enabled auto-merge November 2, 2023 13:16
jswrenn
jswrenn previously approved these changes Nov 2, 2023
@joshlf
Copy link
Member Author

joshlf commented Nov 2, 2023

Fixed a bug; need a new review.

@joshlf joshlf requested a review from jswrenn November 2, 2023 13:23
@joshlf joshlf added this pull request to the merge queue Nov 2, 2023
Merged via the queue into main with commit fb58000 Nov 2, 2023
126 checks passed
@joshlf joshlf deleted the known-layout-derive-doc-hidden branch November 2, 2023 13:46
joshlf added a commit that referenced this pull request Nov 2, 2023
Re-export derive macros separately, naming them explicitly rather than
re-exporting them by glob (i.e., `pub use zerocoy_derive::*`).
Previously, in #588, we attempted to shadow the glob import in order to
mark `KnownLayout` as `#[doc(hidden)]`, but this had no effect
(presumably, the fact that it was `#[doc(hidden)]` meant that it didn't
shadow the glob import, at least from `rustdoc`'s perspective).

In this commit, we just import everything separately by name, which
allows the `#[doc(hidden)]` attribute on the `KnownLayout` derive to
have the intended effect.

Makes progress on #29
github-merge-queue bot pushed a commit that referenced this pull request Nov 2, 2023
Re-export derive macros separately, naming them explicitly rather than
re-exporting them by glob (i.e., `pub use zerocoy_derive::*`).
Previously, in #588, we attempted to shadow the glob import in order to
mark `KnownLayout` as `#[doc(hidden)]`, but this had no effect
(presumably, the fact that it was `#[doc(hidden)]` meant that it didn't
shadow the glob import, at least from `rustdoc`'s perspective).

In this commit, we just import everything separately by name, which
allows the `#[doc(hidden)]` attribute on the `KnownLayout` derive to
have the intended effect.

Makes progress on #29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants