diff options
| author | bors <bors@rust-lang.org> | 2022-09-23 09:33:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-23 09:33:23 +0000 |
| commit | 4d44e09cb1db2788f59159c4b9055e339ed2181d (patch) | |
| tree | ecf4fae12dfe52c30ef4301e1683ee781e2f5d7f /src/bootstrap | |
| parent | bc4d574ff2ffcfe76db36116cc4f193384065985 (diff) | |
| parent | 8e3b9bca65d7d79a3b0e9c33fed8d8c93dd66041 (diff) | |
| download | rust-4d44e09cb1db2788f59159c4b9055e339ed2181d.tar.gz rust-4d44e09cb1db2788f59159c4b9055e339ed2181d.zip | |
Auto merge of #102165 - matthiaskrgr:rollup-n5oquhe, r=matthiaskrgr
Rollup of 8 pull requests Successful merges: - #100734 (Split out async_fn_in_trait into a separate feature) - #101664 (Note if mismatched types have a similar name) - #101815 (Migrated the rustc_passes annotation without effect diagnostic infrastructure) - #102042 (Distribute rust-docs-json via rustup.) - #102066 (rustdoc: remove unnecessary `max-width` on headers) - #102095 (Deduplicate two functions that would soon have been three) - #102104 (Set 'exec-env:RUST_BACKTRACE=0' in const-eval-select tests) - #102112 (Allow full relro on powerpc64-unknown-linux-gnu) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/dist.rs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 05664ca2179..b7bc96cc86d 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -86,29 +86,23 @@ impl Step for JsonDocs { fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { let default = run.builder.config.docs; - run.alias("rust-json-docs").default_condition(default) + run.alias("rust-docs-json").default_condition(default) } fn make_run(run: RunConfig<'_>) { run.builder.ensure(JsonDocs { host: run.target }); } - /// Builds the `rust-json-docs` installer component. + /// Builds the `rust-docs-json` installer component. fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> { - // This prevents JSON docs from being built for "dist" or "install" - // on the stable/beta channels. The JSON format is not stable yet and - // should not be included in stable/beta toolchains. - if !builder.build.unstable_features() { - return None; - } - let host = self.host; builder.ensure(crate::doc::JsonStd { stage: builder.top_stage, target: host }); let dest = "share/doc/rust/json"; - let mut tarball = Tarball::new(builder, "rust-json-docs", &host.triple); + let mut tarball = Tarball::new(builder, "rust-docs-json", &host.triple); tarball.set_product_name("Rust Documentation In JSON Format"); + tarball.is_preview(true); tarball.add_bulk_dir(&builder.json_doc_out(host), dest); Some(tarball.generate()) } |
