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

Fix trait methods' toggle #85722

Merged
merged 2 commits into from
May 27, 2021
Merged

Fix trait methods' toggle #85722

merged 2 commits into from
May 27, 2021

Conversation

GuillaumeGomez
Copy link
Member

A <details> tag wasn't closed on trait methods, which created broken DOM. I also used this occasion to only generate the toggle in case there is documentation on the method.

r? @jsha

* Don't generate a <details> if there is no documentation
@GuillaumeGomez GuillaumeGomez added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. A-rustdoc-ui Area: Rustdoc UI (generated HTML) labels May 26, 2021
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 26, 2021
@GuillaumeGomez GuillaumeGomez changed the title Fix trait toggle Fix trait methods' toggle May 26, 2021
@GuillaumeGomez
Copy link
Member Author

GuillaumeGomez commented May 27, 2021

Considering it's a bug fix (try collapsing https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/visit/trait.Visitor.html#method.visit_foreign_item and you'll see 😉 ), the sooner it's merged the better.

cc @rust-lang/rustdoc

@jsha
Copy link
Contributor

jsha commented May 27, 2021

@bors r+

@bors
Copy link
Contributor

bors commented May 27, 2021

📌 Commit 3bed0be has been approved by jsha

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 27, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request May 27, 2021
…laumeGomez

Rollup of 3 pull requests

Successful merges:

 - rust-lang#85722 (Fix trait methods' toggle)
 - rust-lang#85730 (Mention workaround for floats in Iterator::{min, max})
 - rust-lang#85738 (Rename opensbd to openbsd)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 6ac83e1 into rust-lang:master May 27, 2021
@rustbot rustbot added this to the 1.54.0 milestone May 27, 2021
@GuillaumeGomez GuillaumeGomez deleted the trait-toggle branch May 28, 2021 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-ui Area: Rustdoc UI (generated HTML) S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants