From e0bd1877d0e436b50743f50b947fc23afd3403e5 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 26 Aug 2021 14:06:32 -0700 Subject: [PATCH] Fix test not to rely on `cargo` in PATH. --- tests/testsuite/fix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testsuite/fix.rs b/tests/testsuite/fix.rs index ed3479f160b..2d9b1409266 100644 --- a/tests/testsuite/fix.rs +++ b/tests/testsuite/fix.rs @@ -1719,7 +1719,7 @@ fn fix_with_run_cargo_in_proc_macros() { #[proc_macro] pub fn foo(_input: TokenStream) -> TokenStream { - let output = std::process::Command::new("cargo") + let output = std::process::Command::new(env!("CARGO")) .args(&["metadata", "--format-version=1"]) .output() .unwrap();