-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
strip synstructure consts from compiler docs #60885
Conversation
The principled fix for this is with #54912. |
@Centril Not necessarily, it's still unclear what rustdoc's behavior with underscore constants should be. I would assume that underscore consts would appear in documentation unless they are marked with |
@euclio That's not my assumption; underscore consts are sort of explicitly for the purpose of "ignore me please I just want a gensym". |
That seems inconsistent to me. I agree that in the majority of cases,
underscore consts would be private, so they would be ignored by rustdoc.
But what if `--document-private-items` is used or if the const is `pub`?
What if the const has a doc comment?
…On Thu, May 16, 2019, 4:43 PM Mazdak Farrokhzad ***@***.***> wrote:
@euclio <https://github.com/euclio> That's not my assumption; underscore
consts are sort of explicitly for the purpose of "ignore me please I just
want a gensym".
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#60885?email_source=notifications&email_token=AAKPCFS4U6Q6KUF6UZQFCCDPVXBPPA5CNFSM4HNPIVS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVTAFIQ#issuecomment-493224610>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKPCFVC2UDKLI3KJF2JOFTPVXBPPANCNFSM4HNPIVSQ>
.
|
@euclio hmm... interesting; the synstructure consts are public...? but why... 😕 |
@Centril They aren't, they just appear due to |
Thanks! @bors: r+ rollup |
📌 Commit c95be3d has been approved by |
@bors rollup- @GuillaumeGomez Please avoid rolling up lockfile changes :) |
…=GuillaumeGomez strip synstructure consts from compiler docs Fixes rust-lang#60150. Unfortunately this PR depends on the use of the deprecated `--passes` flag in bootstrap to keep the `--strip-hidden` pass while still documenting private items. I've opened rust-lang#60884 to track stabilization of a new flag that encapsulates this behavior. r? @QuietMisdreavus
…=GuillaumeGomez strip synstructure consts from compiler docs Fixes rust-lang#60150. Unfortunately this PR depends on the use of the deprecated `--passes` flag in bootstrap to keep the `--strip-hidden` pass while still documenting private items. I've opened rust-lang#60884 to track stabilization of a new flag that encapsulates this behavior. r? @QuietMisdreavus
…=GuillaumeGomez strip synstructure consts from compiler docs Fixes rust-lang#60150. Unfortunately this PR depends on the use of the deprecated `--passes` flag in bootstrap to keep the `--strip-hidden` pass while still documenting private items. I've opened rust-lang#60884 to track stabilization of a new flag that encapsulates this behavior. r? @QuietMisdreavus
Rollup of 7 pull requests Successful merges: - #60549 (do not print panic message on doctest failures) - #60885 (strip synstructure consts from compiler docs) - #61217 (Account for short-hand init structs when suggesting conversion) - #61261 (is_union returns ty to avoid computing it twice) - #61293 (Print const generics properly in rustdoc) - #61310 (split libcore::mem into multiple files) - #61313 (Simplify Set1::insert) Failed merges: r? @ghost
Fixes #60150.
Unfortunately this PR depends on the use of the deprecated
--passes
flag in bootstrap to keep the--strip-hidden
pass while still documenting private items. I've opened #60884 to track stabilization of a new flag that encapsulates this behavior.r? @QuietMisdreavus