diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-05-27 00:24:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-27 00:24:00 +0200 |
| commit | a81ef8aa0808a74583f7ede012eafd067fb1e071 (patch) | |
| tree | 103fa1d85ff1c501b08dfdcd359afbed8c215fa6 | |
| parent | 76bb98c76e07f97ff83da8dd7854e33e7c559cdd (diff) | |
| parent | 39f337ab955e7a860530417e4bf02b99aa54a8a0 (diff) | |
| download | rust-a81ef8aa0808a74583f7ede012eafd067fb1e071.tar.gz rust-a81ef8aa0808a74583f7ede012eafd067fb1e071.zip | |
Rollup merge of #111977 - jyn514:doc-errors, r=est31
Make errors from `x doc` less verbose before: ``` error: could not document `bootstrap` Caused by: process didn't exit successfully: `/home/jyn/src/rust/build/bootstrap/debug/rustdoc ... --crate-version '1.71.0 (eb9da7bfa 2023-05-25) (a long description goes here)' --document-private-items --enable-index-page --show-type-layout --generate-link-to-definition -Zunstable-options` (exit status: 1) ``` after: ``` error: could not document `bootstrap` Caused by: process didn't exit successfully: `/home/jyn/src/rust/build/bootstrap/debug/rustdoc ... --crate-version '1.71.0 (eb9da7bfa 2023-05-25) (a long description goes here)' --document-private-items --enable-index-page --show-type-layout --generate-link-to-definition -Zunstable-options` (exit status: 1) ```
| -rw-r--r-- | src/bootstrap/builder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index f9de87c3f0d..a86366e58f7 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -1916,10 +1916,10 @@ impl<'a> Builder<'a> { } // For `cargo doc` invocations, make rustdoc print the Rust version into the docs - // This replaces spaces with newlines because RUSTDOCFLAGS does not + // This replaces spaces with tabs because RUSTDOCFLAGS does not // support arguments with regular spaces. Hopefully someday Cargo will // have space support. - let rust_version = self.rust_version().replace(' ', "\n"); + let rust_version = self.rust_version().replace(' ', "\t"); rustdocflags.arg("--crate-version").arg(&rust_version); // Environment variables *required* throughout the build |
