diff options
| author | Luca Palmieri <rust@lpalmieri.com> | 2022-09-14 13:49:05 +0200 |
|---|---|---|
| committer | Luca Palmieri <rust@lpalmieri.com> | 2022-09-17 21:58:34 +0200 |
| commit | 235dccef2b8012e7d9da87f4b6091912d802cff2 (patch) | |
| tree | 5bc6336a2eaba7770223d3e83a724656ef53c78f /src/bootstrap/builder | |
| parent | 9da4644d5685aa0c4daa4aea6ddc9eb834ae51cc (diff) | |
| download | rust-235dccef2b8012e7d9da87f4b6091912d802cff2.tar.gz rust-235dccef2b8012e7d9da87f4b6091912d802cff2.zip | |
Add a new component, `rust-json-docs`, to distribute the JSON-formatted documentation for std crates in nightly toolchains.
We also add a new flag to `x doc`, `--json`, to render the JSON-formatted version alongside the HTML-formatted one.
Diffstat (limited to 'src/bootstrap/builder')
| -rw-r--r-- | src/bootstrap/builder/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/builder/tests.rs b/src/bootstrap/builder/tests.rs index 280eba75f0c..88bbcc93d07 100644 --- a/src/bootstrap/builder/tests.rs +++ b/src/bootstrap/builder/tests.rs @@ -236,7 +236,7 @@ mod defaults { fn doc_default() { let mut config = configure("doc", &["A"], &["A"]); config.compiler_docs = true; - config.cmd = Subcommand::Doc { paths: Vec::new(), open: false }; + config.cmd = Subcommand::Doc { paths: Vec::new(), open: false, json: false }; let mut cache = run_build(&[], config); let a = TargetSelection::from_user("A"); @@ -587,7 +587,7 @@ mod dist { fn doc_ci() { let mut config = configure(&["A"], &["A"]); config.compiler_docs = true; - config.cmd = Subcommand::Doc { paths: Vec::new(), open: false }; + config.cmd = Subcommand::Doc { paths: Vec::new(), open: false, json: false }; let build = Build::new(config); let mut builder = Builder::new(&build); builder.run_step_descriptions(&Builder::get_step_descriptions(Kind::Doc), &[]); |
