Skip to content

Commit 39f337a

Browse files
committed
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 (eb9da7b 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 (eb9da7b 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) ```
1 parent eb9da7b commit 39f337a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/builder.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1915,10 +1915,10 @@ impl<'a> Builder<'a> {
19151915
}
19161916

19171917
// For `cargo doc` invocations, make rustdoc print the Rust version into the docs
1918-
// This replaces spaces with newlines because RUSTDOCFLAGS does not
1918+
// This replaces spaces with tabs because RUSTDOCFLAGS does not
19191919
// support arguments with regular spaces. Hopefully someday Cargo will
19201920
// have space support.
1921-
let rust_version = self.rust_version().replace(' ', "\n");
1921+
let rust_version = self.rust_version().replace(' ', "\t");
19221922
rustdocflags.arg("--crate-version").arg(&rust_version);
19231923

19241924
// Environment variables *required* throughout the build

0 commit comments

Comments
 (0)