Small fixups

- use `path` instead of `paths`
- don't mark rust-analyzer as an optional tool
- print the cargo command that's run in the proc-macro-test build script

  this originally was part of a change to fix `test --stage 0 rust-analyzer`,
  but I'm going to leave that for a separate PR so it's easier to review.
This commit is contained in:
Joshua Nelson 2022-07-23 15:37:46 -05:00 committed by Amos Wenger
parent b351e115d6
commit 20eb2ddb2e

View File

@ -62,7 +62,7 @@ fn main() {
Command::new(toolchain::cargo())
};
let output = cmd
cmd
.current_dir(&staging_dir)
.args(&["build", "-p", "proc-macro-test-impl", "--message-format", "json"])
// Explicit override the target directory to avoid using the same one which the parent
@ -70,9 +70,11 @@ fn main() {
// This can happen when `CARGO_TARGET_DIR` is set or global config forces all cargo
// instance to use the same target directory.
.arg("--target-dir")
.arg(&target_dir)
.output()
.unwrap();
.arg(&target_dir);
println!("Running {:?}", cmd);
let output = cmd.output().unwrap();
if !output.status.success() {
println!("proc-macro-test-impl failed to build");
println!("============ stdout ============");