Skip to content

Commit 5c73ee9

Browse files
committed
Rename default_doc to run_default_doc_steps and remove unused argument
1 parent b8d33dd commit 5c73ee9

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/bootstrap/src/core/build_steps/dist.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl Step for Docs {
7575
/// Builds the `rust-docs` installer component.
7676
fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
7777
let host = self.host;
78-
builder.default_doc(&[]);
78+
builder.run_default_doc_steps();
7979

8080
let dest = "share/doc/rust/html";
8181

@@ -154,7 +154,7 @@ impl Step for RustcDocs {
154154
/// Builds the `rustc-docs` installer component.
155155
fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
156156
let host = self.host;
157-
builder.default_doc(&[]);
157+
builder.run_default_doc_steps();
158158

159159
let mut tarball = Tarball::new(builder, "rustc-docs", &host.triple);
160160
tarball.set_product_name("Rustc Documentation");

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ You can skip linkcheck with --skip src/tools/linkchecker"
153153
}
154154

155155
// Build all the default documentation.
156-
builder.default_doc(&[]);
156+
builder.run_default_doc_steps();
157157

158158
// Build the linkchecker before calling `msg`, since GHA doesn't support nested groups.
159159
let linkchecker = builder.tool_cmd(Tool::Linkchecker);
@@ -208,7 +208,7 @@ impl Step for HtmlCheck {
208208
panic!("Cannot run html-check tests");
209209
}
210210
// Ensure that a few different kinds of documentation are available.
211-
builder.default_doc(&[]);
211+
builder.run_default_doc_steps();
212212
builder.ensure(crate::core::build_steps::doc::Rustc::for_stage(
213213
builder,
214214
builder.top_stage,

src/bootstrap/src/core/builder/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,8 +1308,9 @@ impl<'a> Builder<'a> {
13081308
self.run_step_descriptions(&Builder::get_step_descriptions(self.kind), &self.paths);
13091309
}
13101310

1311-
pub fn default_doc(&self, paths: &[PathBuf]) {
1312-
self.run_step_descriptions(&Builder::get_step_descriptions(Kind::Doc), paths);
1311+
/// Run all default documentation steps to build documentation.
1312+
pub fn run_default_doc_steps(&self) {
1313+
self.run_step_descriptions(&Builder::get_step_descriptions(Kind::Doc), &[]);
13131314
}
13141315

13151316
pub fn doc_rust_lang_org_channel(&self) -> String {

0 commit comments

Comments
 (0)