mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-30 23:27:24 +00:00
Merge pull request #20528 from ShoyuVanilla/nightly-zscript
fix: Masquerade as nightly cargo when invoking flycheck with `-Zscript`
This commit is contained in:
commit
f8ae8975a6
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