rust/src
Michael Goulet cc95225fee
Rollup merge of #98310 - jsha:defer-source-sidebar, r=GuillaumeGomez
rustdoc: optimize loading of source sidebar

The source sidebar has a setting to remember whether it should be open or
closed. Previously, this setting was handled in source-script.js, which
is loaded with `defer`, meaning it is often run after the document is rendered.
Since CSS renders the source sidebar as closed by default, changing this
after the initial render results in a relayout.

Instead, handle the setting in storage.js, which is the first script to load
and is the only script that blocks render. This avoids a relayout and means
navigating between files with the sidebar open is faster.

Demo: https://rustdoc.crud.net/jsha/defer-source-sidebar/src/alloc/ffi/c_str.rs.html

r? ````@GuillaumeGomez````
2022-06-23 14:39:10 -07:00
..
bootstrap Auto merge of #97268 - jyn514:faster-assemble, r=Mark-Simulacrum 2022-06-19 22:22:07 +00:00
ci Temporarily disable submodule archive downloads. 2022-06-23 10:44:36 -07:00
doc Rollup merge of #98226 - ChrisDenton:doc-extern-options, r=ehuss 2022-06-22 15:16:15 +09:00
etc Rollup merge of #95446 - notseanray:master, r=Mark-Simulacrum 2022-06-22 15:16:08 +09:00
librustdoc Rollup merge of #98310 - jsha:defer-source-sidebar, r=GuillaumeGomez 2022-06-23 14:39:10 -07:00
llvm-project@c9e2e89ed3 Update LLVM submodule 2022-06-03 15:57:32 +02:00
rustdoc-json-types rustdoc-json: Fix HRTBs for WherePredicate::BoundPredicate 2022-05-04 21:03:01 +02:00
test Rollup merge of #98310 - jsha:defer-source-sidebar, r=GuillaumeGomez 2022-06-23 14:39:10 -07:00
tools Auto merge of #97853 - TaKO8Ki:emit-only-one-note-per-unused-struct-field, r=estebank 2022-06-22 02:51:55 +00:00
README.md
stage0.json change stage0.json to reduce the chance of merge conflicts 2022-06-09 19:43:11 +02:00
version Bump to 1.63 2022-05-13 10:08:03 -04:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.