fix: Masquerade as nightly cargo when invoking flycheck with -Zscript
This commit is contained in:
parent
80f4a79023
commit
5ddf6846d5
1 changed files with 1 additions and 0 deletions
|
|
@ -588,6 +588,7 @@ impl FlycheckActor {
|
|||
cmd.arg("--manifest-path");
|
||||
cmd.arg(manifest_path);
|
||||
if manifest_path.extension() == Some("rs") {
|
||||
cmd.env("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS", "nightly");
|
||||
cmd.arg("-Zscript");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue