diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-11-25 18:35:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-25 18:35:42 +0100 |
| commit | c72db77ecb342d95b20936a3fe6d74a5f139837a (patch) | |
| tree | 44dc54ea84d98df5dbd9ddab2132dfb12ee2c3db /compiler/rustc_trait_selection/src | |
| parent | 996de3adf6adc2b2ad86d8646ec8946536fa60a7 (diff) | |
| parent | 37b0a100aa5e6b98cc8985c5db7ca124fd915f5b (diff) | |
| download | rust-c72db77ecb342d95b20936a3fe6d74a5f139837a.tar.gz rust-c72db77ecb342d95b20936a3fe6d74a5f139837a.zip | |
Rollup merge of #104887 - aDotInTheVoid:rustbuild-json-doc-shared-assets, r=jyn514
rustbuild: Don't build doc::SharedAssets when building JSON docs.
Previously, running `./x doc library/core/ --json` on a plain build would panic bootstrap.
```
$ ./x doc library/core/ --json
Building rustbuild
Blocking waiting for file lock on package cache
Compiling bootstrap v0.0.0 (/home/nixon/dev/rust/rust/src/bootstrap)
Finished dev [unoptimized] target(s) in 4.47s
thread 'main' panicked at 'fs::write(&version_info, &info) failed with No such file or directory (os error 2) ("/home/nixon/dev/rust/rust/build/x86_64-unknown-linux-gnu/doc/version_info.html")', doc.rs:410:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Build completed unsuccessfully in 0:00:04
```
Becuase the `SharedAssets` step assumes that the HTML out dir has been created. This isn't true for JSON.
The fix is to not build shared assets when doing a JSON doc build, as it doesn't need them.
r? ``@jyn514``
``@rustbot`` modify labels: +A-rustdoc-json
Diffstat (limited to 'compiler/rustc_trait_selection/src')
0 files changed, 0 insertions, 0 deletions
