Skip to content

Commit a81ef8a

Browse files
authored
Rollup merge of rust-lang#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 (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) ```
2 parents 76bb98c + 39f337a commit a81ef8a

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
@@ -1916,10 +1916,10 @@ impl<'a> Builder<'a> {
19161916
}
19171917

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

19251925
// Environment variables *required* throughout the build

0 commit comments

Comments
 (0)