Rollup merge of #112211 - eval-exec:exec/fix-bootstrap-rustdoc, r=ozkanonur

pass `--lib` to `x doc`

This PR want to close #112082
This commit is contained in:
Michael Goulet 2023-06-02 16:02:07 -07:00 committed by GitHub
commit 163ce686be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -834,6 +834,7 @@ macro_rules! tool_doc {
cargo.arg("-Zskip-rustdoc-fingerprint");
// Only include compiler crates, no dependencies of those, such as `libc`.
cargo.arg("--no-deps");
cargo.arg("--lib");
$(
cargo.arg("-p").arg($krate);
)+