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

rustdoc: Don't inline #[doc(hidden)] pub use #34232

Merged
merged 1 commit into from
Jun 14, 2016

Conversation

ollie27
Copy link
Member

@ollie27 ollie27 commented Jun 11, 2016

Currently if a #[doc(hidden)] pub use item is inlined the hidden
attribute is ignored so the item can appear in the docs. By never inlining
such imports, they can be stripped.

An example in std is __OsLocalKeyInner which clearly should not be documented.

Currently if a `#[doc(hidden)] pub use` item is inlined the `hidden`
attribute is ignored so the item can appear in the docs. By never inlining
such imports, they can be stripped.
@rust-highfive
Copy link
Collaborator

r? @steveklabnik

(rust_highfive has picked a reviewer for you, use r? to override)

@GuillaumeGomez
Copy link
Member

👍

@alexcrichton
Copy link
Member

@bors: r+ a7c4674

Thanks @ollie27!

@bors
Copy link
Contributor

bors commented Jun 12, 2016

⌛ Testing commit a7c4674 with merge 3cf2eea...

@bors
Copy link
Contributor

bors commented Jun 12, 2016

💔 Test failed - auto-win-gnu-64-nopt-t

@retep998
Copy link
Member

gcc had a STATUS_ACCESS_VIOLATION? That does not sound good.

@alexcrichton
Copy link
Member

@bors: retry

On Mon, Jun 13, 2016 at 2:57 AM, Peter Atashian [email protected]
wrote:

gcc had a STATUS_ACCESS_VIOLATION? That does not sound good.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#34232 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAD95JQ7U1LUnXEzrJH___1_0XraU91Zks5qLKr2gaJpZM4IzqLI
.

@bors
Copy link
Contributor

bors commented Jun 14, 2016

⌛ Testing commit a7c4674 with merge 2940eb5...

bors added a commit that referenced this pull request Jun 14, 2016
rustdoc: Don't inline #[doc(hidden)] pub use

Currently if a `#[doc(hidden)] pub use` item is inlined the `hidden`
attribute is ignored so the item can appear in the docs. By never inlining
such imports, they can be stripped.

An example in `std` is [`__OsLocalKeyInner`](https://doc.rust-lang.org/nightly/std/thread/struct.__OsLocalKeyInner.html) which clearly should not be documented.
@bors bors merged commit a7c4674 into rust-lang:master Jun 14, 2016
@ollie27 ollie27 deleted the rustdoc_inline branch June 15, 2016 23:03
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.

7 participants