Skip to content

Sort "implementations on foreign types" section in the sidebar - #71945

Merged
bors merged 1 commit into
rust-lang:masterfrom
GuillaumeGomez:sort-impl-on-foreign-types-section
May 10, 2020
Merged

Sort "implementations on foreign types" section in the sidebar#71945
bors merged 1 commit into
rust-lang:masterfrom
GuillaumeGomez:sort-impl-on-foreign-types-section

Conversation

@GuillaumeGomez

Copy link
Copy Markdown
Member

Fixes#71926.

We were sorting by the ID instead of sorting by the name. They're not in the same order as the implementations but I think it makes more sense this way considering this is what we do for the methods as well.

r? @kinnison

cc @rust-lang/rustdoc

@kinnisonkinnison left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to do as intended. Is there a need to add a test to ensure things remain sorted? is there anything else whose sort ordering needs tweaking? If the answer to those two points is "no" then I'm okay for this to be merged r=kinnison

Comment threadsrc/librustdoc/html/render.rs Outdated
@GuillaumeGomez

Copy link
Copy Markdown
MemberAuthor

@kinnison For the tests, it's in progress but in another PR (and it might take a while...).

@GuillaumeGomez
GuillaumeGomezforce-pushed the sort-impl-on-foreign-types-section branch from caed5e2 to 27f7297CompareMay 9, 2020 10:51
@GuillaumeGomez

Copy link
Copy Markdown
MemberAuthor

Updated!

Comment threadsrc/librustdoc/html/render.rs Outdated
@GuillaumeGomez
GuillaumeGomezforce-pushed the sort-impl-on-foreign-types-section branch from 27f7297 to b865db0CompareMay 9, 2020 11:50
@GuillaumeGomez

Copy link
Copy Markdown
MemberAuthor

Updated!

@kinnisonkinnison left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming green CI, I'm r+ on this @ollie27 ?

@ollie27

Copy link
Copy Markdown
Contributor

@bors r=kinnison,ollie27

@bors

bors commented May 9, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit b865db0 has been approved by kinnison,ollie27

@borsbors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label May 9, 2020
RalfJung added a commit to RalfJung/rust that referenced this pull request May 10, 2020
…-types-section, r=kinnison,ollie27
Sort "implementations on foreign types" section in the sidebar
Fixesrust-lang#71926.
We were sorting by the ID instead of sorting by the name. They're not in the same order as the implementations but I think it makes more sense this way considering this is what we do for the methods as well.
r? @kinnison
cc @rust-lang/rustdoc
This was referenced May 10, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request May 10, 2020
Rollup of 4 pull requests
Successful merges:
- rust-lang#71840 (Rework MIR drop tree lowering)
- rust-lang#71882 (Update the `cc` crate)
- rust-lang#71945 (Sort "implementations on foreign types" section in the sidebar)
- rust-lang#72043 (Add missing backtick in E0569 explanation)
Failed merges:
r? @ghost
@bors
bors merged commit d22c18b into rust-lang:masterMay 10, 2020
@GuillaumeGomez
GuillaumeGomez deleted the sort-impl-on-foreign-types-section branch May 11, 2020 08:19
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The list of impl on the left of rust docs are in the wrong order

4 participants

@GuillaumeGomez@ollie27@bors@kinnison