Skip to content

Commit 2a98fc6

Browse files
committed
Publish docs for the proc_macro crate.
Fix #38749
1 parent 5b7c556 commit 2a98fc6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/bootstrap/doc.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ use {Build, Compiler, Mode};
2525
use util::cp_r;
2626
use build_helper::up_to_date;
2727

28+
/// Only these crates should have their rustdoc documentation built by default.
29+
const PUBLIC_CRATES: &'static [&'static str] = &[
30+
"alloc", "collections", "core", "std", "std_unicode", "proc_macro"
31+
];
32+
2833
/// Invoke `rustbook` as compiled in `stage` for `target` for the doc book
2934
/// `name` into the `out` path.
3035
///
@@ -162,7 +167,7 @@ pub fn std(build: &Build, stage: u32, target: &str) {
162167
cargo.arg("-p").arg("std");
163168
} else {
164169
cargo.arg("--no-deps");
165-
for krate in &["alloc", "collections", "core", "std", "std_unicode"] {
170+
for krate in PUBLIC_CRATES {
166171
cargo.arg("-p").arg(krate);
167172
// Create all crate output directories first to make sure rustdoc uses
168173
// relative links.

0 commit comments

Comments
 (0)