Skip to content

Documentation: sorting impls for structs: first crate's own impls, then std impls #124826

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

Open
rodrigocfd opened this issue May 6, 2024 · 1 comment
Labels
C-feature-request Category: A feature request, i.e: not implemented / a PR. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@rodrigocfd
Copy link

Problem

When we generate the documentation for a crate, all the crate implementations are sorted alphabetically. The crate's own traits and the std traits are all mixed together.

trait-order

Proposed Solution

List first the crate's own traits, alphabetically. Then followed by std traits, alphabetically.

Notes

No response

@rodrigocfd rodrigocfd added the C-feature-request Category: A feature request, i.e: not implemented / a PR. label May 6, 2024
@ehuss ehuss transferred this issue from rust-lang/cargo May 6, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label May 6, 2024
@ehuss
Copy link
Contributor

ehuss commented May 6, 2024

Transferred to rust-lang/rust. This behavior is controlled by rustdoc, and its issues are tracked here.

@ehuss ehuss added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label May 6, 2024
@jieyouxu jieyouxu removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: A feature request, i.e: not implemented / a PR. 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

4 participants