Skip to content

Commit 8f8248d

Browse files
committed
Remove obsolete RustcGuide step
It was not working for some time, rustbook no longer even has a `linkcheck` argument.
1 parent 7521540 commit 8f8248d

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

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

-29
Original file line numberDiff line numberDiff line change
@@ -2509,35 +2509,6 @@ fn markdown_test(builder: &Builder<'_>, compiler: Compiler, markdown: &Path) ->
25092509
}
25102510
}
25112511

2512-
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
2513-
pub struct RustcGuide;
2514-
2515-
impl Step for RustcGuide {
2516-
type Output = ();
2517-
const DEFAULT: bool = false;
2518-
const ONLY_HOSTS: bool = true;
2519-
2520-
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
2521-
run.path("src/doc/rustc-dev-guide")
2522-
}
2523-
2524-
fn make_run(run: RunConfig<'_>) {
2525-
run.builder.ensure(RustcGuide);
2526-
}
2527-
2528-
fn run(self, builder: &Builder<'_>) {
2529-
let relative_path = "src/doc/rustc-dev-guide";
2530-
builder.require_submodule(relative_path, None);
2531-
2532-
let src = builder.src.join(relative_path);
2533-
let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook).delay_failure();
2534-
rustbook_cmd.arg("linkcheck").arg(&src);
2535-
let toolstate =
2536-
if rustbook_cmd.run(builder) { ToolState::TestPass } else { ToolState::TestFail };
2537-
builder.save_toolstate("rustc-dev-guide", toolstate);
2538-
}
2539-
}
2540-
25412512
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
25422513
pub struct CrateLibrustc {
25432514
compiler: Compiler,

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

-1
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,6 @@ impl<'a> Builder<'a> {
944944
test::UnstableBook,
945945
test::RustcBook,
946946
test::LintDocs,
947-
test::RustcGuide,
948947
test::EmbeddedBook,
949948
test::EditionGuide,
950949
test::Rustfmt,

0 commit comments

Comments
 (0)