diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs index f47b0c0b0072d..2fbb068632edd 100644 --- a/src/bootstrap/src/core/build_steps/dist.rs +++ b/src/bootstrap/src/core/build_steps/dist.rs @@ -83,7 +83,7 @@ impl Step for Docs { // FIXME: explicitly enumerate the steps that should be executed here, and gather their // documentation, rather than running all default steps and then read their output // from a shared directory. - builder.run_default_doc_steps(); + builder.run_host_default_doc_steps(); let dest = "share/doc/rust/html"; diff --git a/src/bootstrap/src/core/builder/mod.rs b/src/bootstrap/src/core/builder/mod.rs index 4a04b97c549a1..16c1c324be08c 100644 --- a/src/bootstrap/src/core/builder/mod.rs +++ b/src/bootstrap/src/core/builder/mod.rs @@ -1117,6 +1117,11 @@ impl<'a> Builder<'a> { self.run_step_descriptions(&Builder::get_step_descriptions(self.kind), &self.paths); } + /// Run all default documentation steps to build documentation. + pub fn run_host_default_doc_steps(&self) { + self.run_step_descriptions(&Builder::get_step_descriptions(Kind::Doc), &self.paths); + } + /// Run all default documentation steps to build documentation. pub fn run_default_doc_steps(&self) { self.run_step_descriptions(&Builder::get_step_descriptions(Kind::Doc), &[]);