about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-04-24 12:17:03 +0900
committerGitHub <noreply@github.com>2021-04-24 12:17:03 +0900
commitb4544698d39d9e6995a32b41b33f327b9b0f3f82 (patch)
treed1dc1e26f31f7672ff9ac41b5596907a5bd8e68e /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent5321f9559bdb81fe0f2dda881bef2934ca65eba2 (diff)
parent569096cbaffe39fbede339430c5ed8e80d991a80 (diff)
downloadrust-b4544698d39d9e6995a32b41b33f327b9b0f3f82.tar.gz
rust-b4544698d39d9e6995a32b41b33f327b9b0f3f82.zip
Rollup merge of #84320 - jsha:details-implementors, r=Manishearth,Nemo157,GuillaumeGomez
Use details tag for trait implementors.

Part of #83332 and following on from #83337 and #83355.

This removes one category of JS-generated toggles (implementors), and replaces them with a `<details>` tag. This simplifies the JS, and fixes some bugs where things that were supposed to be hidden by the toggle were not hidden. Compare https://hoffman-andrews.com/rust/details-implementors/std/io/trait.Read.html#impl-Read vs https://doc.rust-lang.org/nightly/std/io/trait.Read.html#implementors.

This introduces a `left: -23px` to put the toggle in the correct place, matching the current style for `.collapse-toggle`.

It's worth noting this introduces a slight behavior change: since the entire line is now a `<summary>`, any part of the line is clickable. So for instance, in `impl Read for File`, clicking `impl` or `for` will collapse / expand the docs. Clicking `Read` or `File` still links to the appropriate documentation as before.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions