From 8657a64a68a20cc94f8ff74c8d59bba0827dbdb7 Mon Sep 17 00:00:00 2001 From: Eval EXEC Date: Sat, 3 Jun 2023 01:58:48 +0800 Subject: [PATCH] Add `--lib` to `cargo doc` --- src/bootstrap/doc.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index 3de85c91516c4..e92a1f89d1645 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -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); )+