diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 6e37bf334526a..51412f79c3d0c 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -213,7 +213,7 @@ impl Step for Cargo { }); let mut cargo = tool::prepare_tool_cargo(builder, compiler, - Mode::ToolStd, + Mode::ToolRustc, self.host, "test", "src/tools/cargo", diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index b12ccc4f39d8d..9dbcacf70262c 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -514,7 +514,7 @@ impl Step for Cargo { compiler: self.compiler, target: self.target, tool: "cargo", - mode: Mode::ToolStd, + mode: Mode::ToolRustc, path: "src/tools/cargo", is_optional_tool: false, source_type: SourceType::Submodule,