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 renders associated constants poorly #44348

Closed
sgrif opened this issue Sep 5, 2017 · 5 comments
Closed

Rustdoc renders associated constants poorly #44348

sgrif opened this issue Sep 5, 2017 · 5 comments
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@sgrif
Copy link
Contributor

sgrif commented Sep 5, 2017

We recently changed Diesel to use associated constants in a few places, and noticed that our docs look a lot worse as a result.

screen shot 2017-09-05 at 1 12 41 pm

It stands out far too much, and looks nothing like any other section of the docs related to traits. It'd be great if the definition could be inlined and look the same as it does for associated types.

@killercup
Copy link
Member

FTR, original implementation was in #39944 and current design suggested in #39944 (comment)

@alexcrichton alexcrichton added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. C-enhancement Category: An issue proposing an enhancement or a PR with one. T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. labels Sep 7, 2017
@GuillaumeGomez
Copy link
Member

Seems like it has been fixed by #39944 so I close.

@sgrif
Copy link
Contributor Author

sgrif commented Dec 6, 2017

@GuillaumeGomez That was the pull request that introduced this bug, not the one that fixed it. Please re-open this issue.

@GuillaumeGomez GuillaumeGomez reopened this Dec 6, 2017
@nox
Copy link
Contributor

nox commented Aug 15, 2018

Why are definitions of constants even printed? This leaks implementation details about how opaque wrappers etc are defined. Could we instead display them only if --document-private-items is on?

@ollie27
Copy link
Member

ollie27 commented Nov 22, 2019

I think we can consider this fixed by #53409.

@ollie27 ollie27 closed this as completed Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

6 participants