Skip to content

Commit e0bd187

Browse files
committed
Fix test not to rely on cargo in PATH.
1 parent d28ca0b commit e0bd187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testsuite/fix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ fn fix_with_run_cargo_in_proc_macros() {
17191719
17201720
#[proc_macro]
17211721
pub fn foo(_input: TokenStream) -> TokenStream {
1722-
let output = std::process::Command::new("cargo")
1722+
let output = std::process::Command::new(env!("CARGO"))
17231723
.args(&["metadata", "--format-version=1"])
17241724
.output()
17251725
.unwrap();

0 commit comments

Comments
 (0)