diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-11-20 18:21:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-20 18:21:49 +0100 |
| commit | c5f92ce2a075c0f656362513ebbaf19006eab047 (patch) | |
| tree | cab658b97c22a3d21cec0af024765c28b0a10d52 /src/bootstrap | |
| parent | db5f005f35ee8abdf772d518fea09fcadd97fb43 (diff) | |
| parent | a3ae6fec8970a09f2983bbc8db90719f11d438ca (diff) | |
| download | rust-c5f92ce2a075c0f656362513ebbaf19006eab047.tar.gz rust-c5f92ce2a075c0f656362513ebbaf19006eab047.zip | |
Rollup merge of #104611 - notriddle:notriddle/scrape-examples-button, r=GuillaumeGomez
rustdoc: use real buttons for scrape examples controls This makes the expand and switch controls keyboard-accessible. Preview: https://notriddle.com/notriddle-rustdoc-demos/scrape-examples-button/test_dingus/fn.test.html
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/test.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index b22b7ad4ae0..38873cee93b 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -1011,6 +1011,8 @@ impl Step for RustdocGUI { // instead of hard-coding this test if entry.file_name() == "link_to_definition" { cargo.env("RUSTDOCFLAGS", "-Zunstable-options --generate-link-to-definition"); + } else if entry.file_name() == "scrape_examples" { + cargo.arg("-Zrustdoc-scrape-examples=examples"); } builder.run(&mut cargo); } |
