]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #85148 - GuillaumeGomez:source-code-line-number, r=jsha
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Mon, 10 May 2021 18:05:26 +0000 (20:05 +0200)
committerGitHub <noreply@github.com>
Mon, 10 May 2021 18:05:26 +0000 (20:05 +0200)
commit3962541dcb4a0e8c6926ea9f426a57f4cde20513
treee81177dfd7334a89dfedad29436cbee16ef6ca40
parentc7e7de4021089598f16dbe90dbcccebbdcd31216
parent4e3fb6858ad46767c021174d7bbe6e14a44e22aa
Rollup merge of #85148 - GuillaumeGomez:source-code-line-number, r=jsha

Fix source code line number display and make it clickable again

Fixes https://github.com/rust-lang/rust/issues/85119.

I used the same logic we're using for other codeblocks: putting the line number `<span>`s into the `example-wrap` directly and then add `display: inline-flex` on `example-wrap`.

r? `@jsha`
src/librustdoc/html/render/print_item.rs
src/librustdoc/html/static/rustdoc.css
src/librustdoc/html/static/themes/ayu.css