From ba6803e6b4f397c6e13e58595b6f1f7ef7c4a00a Mon Sep 17 00:00:00 2001 From: Rune Tynan Date: Tue, 19 Jan 2021 19:15:04 -0500 Subject: No longer require unstable for jsondocck, only build it for json tests --- src/bootstrap/test.rs | 9 +++++++-- src/bootstrap/tool.rs | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src/bootstrap') diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 2811349809e..335a1731002 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -1011,6 +1011,13 @@ note: if you're sure you want to do this, please open an issue as to why. In the cmd.arg("--rustdoc-path").arg(builder.rustdoc(compiler)); } + if mode == "rustdoc-json" { + // Use the beta compiler for jsondocck + let json_compiler = compiler.with_stage(0); + cmd.arg("--jsondocck-path") + .arg(builder.ensure(tool::JsonDocCk { compiler: json_compiler, target })); + } + if mode == "run-make" && suite.ends_with("fulldeps") { cmd.arg("--rust-demangler-path").arg(builder.tool_exe(Tool::RustDemangler)); } @@ -1072,8 +1079,6 @@ note: if you're sure you want to do this, please open an issue as to why. In the cmd.arg("--docck-python").arg(builder.python()); - cmd.arg("--jsondocck-path").arg(builder.ensure(tool::JsonDocCk { compiler, target })); - if builder.config.build.ends_with("apple-darwin") { // Force /usr/bin/python3 on macOS for LLDB tests because we're loading the // LLDB plugin's compiled module which only works with the system python diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index 999ce71ff6e..835b8beb0e7 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -367,7 +367,7 @@ bootstrap_tool!( RustdocTheme, "src/tools/rustdoc-themes", "rustdoc-themes"; ExpandYamlAnchors, "src/tools/expand-yaml-anchors", "expand-yaml-anchors"; LintDocs, "src/tools/lint-docs", "lint-docs"; - JsonDocCk, "src/tools/jsondocck", "jsondocck", is_unstable_tool = true; + JsonDocCk, "src/tools/jsondocck", "jsondocck"; ); #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq, Ord, PartialOrd)] -- cgit 1.4.1-3-g733a5