]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #93217 - willcrichton:example-analyzer, r=GuillaumeGomez
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Wed, 13 Apr 2022 15:35:32 +0000 (17:35 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Apr 2022 15:35:32 +0000 (17:35 +0200)
commitdb61452b7a2ec92d90f4faebfa679c54ad3e1ab0
tree2b1f856f0aaba53b6c53b69669f807d523c8eb66
parentf38c5c8e5d76ea9a87fece143425ef7c703c706a
parent6a18b6865590704d42777fa7432436e55773d46b
Rollup merge of #93217 - willcrichton:example-analyzer, r=GuillaumeGomez

Improve Rustdoc UI for scraped examples with multiline arguments, fix overflow in line numbers

This PR improves a few aspects of the scrape examples feature in Rustdoc.
* Only function names and not the full call expression are highlighted.
* For call-sites with multiline arguments, the minimized code viewer will scroll to the top of the call-site rather than the middle if the argument is larger than the viewer size, ensuring that the function name is visible.
* This fixes an issue where the line numbers column had a visible x-scroll bar.

r? `@GuillaumeGomez`
src/librustdoc/html/render/mod.rs
src/librustdoc/html/static/css/rustdoc.css