Skip to content

rustdoc: use javascript to layout notable traits popups - #104129

Merged
bors merged 5 commits into
rust-lang:masterfrom
notriddle:notriddle/102576-js-notable-trait
Nov 11, 2022
Merged

rustdoc: use javascript to layout notable traits popups#104129
bors merged 5 commits into
rust-lang:masterfrom
notriddle:notriddle/102576-js-notable-trait

Conversation

@notriddle

@notriddlenotriddle commented Nov 7, 2022

Copy link
Copy Markdown
Contributor

@rustbot

Copy link
Copy Markdown
Collaborator

r? @jsha

(rustbot has picked a reviewer for you, use r? to override)

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Nov 7, 2022
@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @Folyd, @jsha

@notriddle
notriddleforce-pushed the notriddle/102576-js-notable-trait branch 6 times, most recently from 424ba55 to 92afac0CompareNovember 8, 2022 05:07
@notriddle
notriddleforce-pushed the notriddle/102576-js-notable-trait branch from 92afac0 to a45151eCompareNovember 8, 2022 05:47
@GuillaumeGomez

Copy link
Copy Markdown
Member

It's similar to my approach in #91431. I personally like it. What do you think @Manishearth ?

@Manishearth

Copy link
Copy Markdown
Member

Seems like a clean way to do this. Not elated about having more JS but I think this is as good a place to have it if any.

@GuillaumeGomez

Copy link
Copy Markdown
Member

Let's just run a perf check beforehand but otherwise I think it's ready to go.

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbotrustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Nov 8, 2022
@bors

bors commented Nov 8, 2022

Copy link
Copy Markdown
Collaborator

⌛ Trying commit a45151e with merge 9e5dcb830b5225cf66838466cf4a2db1058fa8d8...

@bors

bors commented Nov 8, 2022

Copy link
Copy Markdown
Collaborator

☀️ Try build successful - checks-actions
Build commit: 9e5dcb830b5225cf66838466cf4a2db1058fa8d8 (9e5dcb830b5225cf66838466cf4a2db1058fa8d8)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (9e5dcb830b5225cf66838466cf4a2db1058fa8d8): comparison URL.

Overall result: ❌ regressions - no action needed

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: +S-waiting-on-review -S-waiting-on-perf -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
0.6%[0.6%, 0.6%]1
Improvements ✅
(primary)
--0
Improvements ✅
(secondary)
--0
All ❌✅ (primary)--0

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
3.0%[2.7%, 3.5%]3
Improvements ✅
(primary)
-1.5%[-2.1%, -1.0%]2
Improvements ✅
(secondary)
-4.9%[-4.9%, -4.9%]1
All ❌✅ (primary)-1.5%[-2.1%, -1.0%]2

Cycles

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
--0
Improvements ✅
(primary)
-1.2%[-1.2%, -1.2%]1
Improvements ✅
(secondary)
-11.7%[-14.3%, -10.2%]3
All ❌✅ (primary)-1.2%[-1.2%, -1.2%]1

@rustbotrustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Nov 8, 2022
@GuillaumeGomez

Copy link
Copy Markdown
Member

Seems fine so let's go!

@bors r+ rollup

@Dylan-DPCDylan-DPC mentioned this pull request Nov 11, 2022
@notriddle

notriddle commented Nov 11, 2022

Copy link
Copy Markdown
ContributorAuthor

@borsbors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 11, 2022
@notriddle
notriddleforce-pushed the notriddle/102576-js-notable-trait branch from b3edd70 to 05824cdCompareNovember 11, 2022 17:02
@Manishearth

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Nov 11, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 05824cd has been approved by Manishearth

It is now in the queue for this repository.

@borsbors 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 11, 2022
@Manishearth

Copy link
Copy Markdown
Member

@bors rollup=iffy

bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 11, 2022
…earth
Rollup of 8 pull requests
Successful merges:
- rust-lang#95292 (Allow specialized const trait impls.)
- rust-lang#100386 (Make `Sized` coinductive, again)
- rust-lang#102215 (Implement the `+whole-archive` modifier for `wasm-ld`)
- rust-lang#103468 (Fix unused lint and parser caring about spaces to won't produce invalid code)
- rust-lang#103531 (Suggest calling the instance method of the same name when method not found)
- rust-lang#103960 (piece of diagnostic migrate)
- rust-lang#104051 (update Miri)
- rust-lang#104129 (rustdoc: use javascript to layout notable traits popups)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit b74d042 into rust-lang:masterNov 11, 2022
@rustbotrustbot added this to the 1.67.0 milestone Nov 11, 2022
@notriddle
notriddle deleted the notriddle/102576-js-notable-trait branch November 11, 2022 23:33
Aaron1011 pushed a commit to Aaron1011/rust that referenced this pull request Jan 6, 2023
…earth
Rollup of 8 pull requests
Successful merges:
- rust-lang#95292 (Allow specialized const trait impls.)
- rust-lang#100386 (Make `Sized` coinductive, again)
- rust-lang#102215 (Implement the `+whole-archive` modifier for `wasm-ld`)
- rust-lang#103468 (Fix unused lint and parser caring about spaces to won't produce invalid code)
- rust-lang#103531 (Suggest calling the instance method of the same name when method not found)
- rust-lang#103960 (piece of diagnostic migrate)
- rust-lang#104051 (update Miri)
- rust-lang#104129 (rustdoc: use javascript to layout notable traits popups)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
notriddle added a commit to notriddle/rust that referenced this pull request Dec 1, 2023
The old TODO comment stopped applying when
rust-lang#104129
stopped nesting the notable traits popover within the header.
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.T-rustdocRelevant 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.

Notable traits tooltip is laid out underneath subsequent methods

7 participants

@notriddle@rustbot@GuillaumeGomez@Manishearth@rust-timer@bors@jsha