]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #103650 - notriddle:notriddle/line-anchors, r=GuillaumeGomez
authorYuki Okushi <huyuumi.dev+love@gmail.com>
Sun, 13 Nov 2022 07:41:44 +0000 (16:41 +0900)
committerGitHub <noreply@github.com>
Sun, 13 Nov 2022 07:41:44 +0000 (16:41 +0900)
rustdoc: change `.src-line-numbers > span` to `.src-line-numbers > a`

Example: https://notriddle.com/notriddle-rustdoc-demos/line-anchors/test_dingus/fn.test.html

This allows people to treat them like real links, such as right-click to copy URL, and makes the line numbers in a scraped example work at all, when before this commit was added, they had the clickable pointer cursor but did not actually do anything when clicked.

1  2 
src/librustdoc/html/render/mod.rs
src/librustdoc/html/static/css/rustdoc.css
src/test/rustdoc-gui/source-code-page.goml

Simple merge