tool::prepare_tool_cargo
should run builder.ensure
automatically, based on tool mode (original) (raw)
I was somewhat thrown off by 6062059#diff-675065335a90de4a4e1ac5bc0a078709f865ff2d357ba2650309f0ad8614b1d3R3531-R3549; setting Mode::ToolStd
or some of the other Mode::Tool*
options caused a can't find crate for `core`
(and std) error. This was fixed by adding builder.ensure(compile::Std::new(compiler, bootstrap_host));
.
Since prepare_tool_cargo
knows the mode, it should just call builder.ensure
itself. This manual ensure could then be removed from the rest of build_steps/test.rs
.