diff options
| author | Tamir Duberstein <tamird@gmail.com> | 2020-07-07 11:12:44 -0400 |
|---|---|---|
| committer | Tamir Duberstein <tamird@google.com> | 2020-07-10 07:39:28 -0400 |
| commit | 62cf767a4a39b47677d18110359d9e7152dc9d1c (patch) | |
| tree | 8bc162cb6f8e309f513cfccff3ab3969b10333c6 /src/bootstrap | |
| parent | e59b08e62ea691916d2f063cac5aab4634128022 (diff) | |
| download | rust-62cf767a4a39b47677d18110359d9e7152dc9d1c.tar.gz rust-62cf767a4a39b47677d18110359d9e7152dc9d1c.zip | |
Avoid "whitelist"
Other terms are more inclusive and precise.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/doc.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index 4bec6c7791a..582bc9da0e8 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -439,8 +439,6 @@ impl Step for Std { builder.cargo(compiler, Mode::Std, SourceType::InTree, target, "rustdoc"); compile::std_cargo(builder, target, compiler.stage, &mut cargo); - // Keep a whitelist so we do not build internal stdlib crates, these will be - // build by the rustc step later if enabled. cargo.arg("-p").arg(package); // Create all crate output directories first to make sure rustdoc uses // relative links. @@ -460,6 +458,10 @@ impl Step for Std { builder.run(&mut cargo.into()); }; + // Only build the following crates. While we could just iterate over the + // folder structure, that would also build internal crates that we do + // not want to show in documentation. These crates will later be visited + // by the rustc step, so internal documentation will show them. let krates = ["alloc", "core", "std", "proc_macro", "test"]; for krate in &krates { run_cargo_rustdoc_for(krate); |
