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: condense "auto traits" section for types? #64555

Open
birkenfeld opened this issue Sep 17, 2019 · 0 comments
Open

Rustdoc: condense "auto traits" section for types? #64555

birkenfeld opened this issue Sep 17, 2019 · 0 comments
Labels
A-traits Area: Trait system C-enhancement Category: An issue proposing an enhancement or a PR with one. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@birkenfeld
Copy link
Contributor

birkenfeld commented Sep 17, 2019

At the moment we have 5 auto traits documented for each type, and there will likely more in the future (e.g. from @oli-obk's consteval talk: ConstSafe, ConstRefSafe).

For the majority of types where all auto traits are always either impl or !impl, I propose to condense the section, e.g. like in this mockup (original page here):

image

@jonas-schievink jonas-schievink added C-enhancement Category: An issue proposing an enhancement or a PR with one. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. A-traits Area: Trait system labels Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-traits Area: Trait system C-enhancement Category: An issue proposing an enhancement or a PR with one. 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

2 participants